1833291 Members
2825 Online
110051 Solutions
New Discussion

dns

 
SOLVED
Go to solution
Kevin Wright
Honored Contributor

dns

I have just installed bind 8.2.3 and created a slave server on 10.20. however, I cannot get nslookup or dig to use the /etc/hosts file. modified nsswitch.conf to JUST use files, and still it uses dns, any ideas? it seems like this dig/nslookup do not use nsswitch.conf
3 REPLIES 3
James A. Donovan
Honored Contributor
Solution

Re: dns

I believe that HP tweaked nslookup to check nsswitch.conf first. Did your install of BIND 8.2.3 replace the copy of nslookup that was on the system? I think that the "normal" behavior for both nslookup and dig is to read resolv.conf directly.
Remember, wherever you go, there you are...
Tim Malnati
Honored Contributor

Re: dns

This is curious. If you can, shutdown the dns server briefly and see what happens. If it works properly, then add dns to nsswitch.conf and see if it will find a hostname not defined in the local /etc/hosts file. I'm sort of wondering if dns running locally is somehow overrididing things.
Kevin Wright
Honored Contributor

Re: dns

your right, after relooking through my o'reily book, I found a sentence that states that nslookup from isc.org, where I got bind 8.2.3, ONLY uses dns, so it in fact does not even look at nsswitch.conf..interesting. anyone know how to copy the nslookup binaries over from another box?