1834156 Members
2829 Online
110064 Solutions
New Discussion

DNS resolution

 
SOLVED
Go to solution
Sirius Black
Regular Advisor

DNS resolution

Hi all,
I've this problem; when I make a nslookup of a name which exist in my DNS, the resolution of this name it'ok. If I try to resolve a name which is not in my DNS's db I see the follow output:

***************************************
Name Server: mynameserver
Address: myipnameserver

Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "noindns"
***************************************
this should be ok , but why the resolution is trying to resolv with a NIS ?
I will show you my nsswitch.con file:

**********************************
passwd: files
group: files
host: dns [NOTFOUND=continue UNAVAILABLE=continue TRYAGAIN=continue ] files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files
**********************************

and this is the resolv.conf
**********************************
domain netmgmt.tsf.it
nameserver 127.0.0.1
**********************************
I've the same configuration in many other machine and no one of them gives me this output when I try to resolv a name not in DNS's db.
Thanks a lot
Fabrizio
4 REPLIES 4
Karthik S S
Honored Contributor
Solution

Re: DNS resolution

I think it is because of the spelling problem in the nsswitch.conf file,

Change the entry from,

host: dns [NOTFOUND=continue UNAVAILABLE=continue TRYAGAIN=continue ] files

to

hosts: dns [NOTFOUND=continue UNAVAILABLE=continue TRYAGAIN=continue ] files

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn

Re: DNS resolution

try
hosts: dns [NOTFOUND=continue] files
Charlie Rubeor
Frequent Advisor

Re: DNS resolution

The hosts line in your nsswitch.conf line should start with "hosts:", not "host:"

That might not solve the problem, but I would start there.
Sirius Black
Regular Advisor

Re: DNS resolution

Ok,
I solve my problem changing host in hosts as tell me the first answer.
thanks a lot