Strang name resolution behavior

Dr. Harry Knitter harry at knitter-edv-beratung.de
Wed Apr 19 07:27:09 UTC 2006


Am Mittwoch, 19. April 2006 08:52 schrieb Stefan Puiu:
> What do you have in /etc/resolv.conf? If that file points to a
> different (unreachable?) nameserver, then your local stub resolver
> (used by 99% of Linux apps) will fail while trying to query that
> server.
> 

nameserver <IP of my nameserver>
search <mydomain.local>

> You also might want to check /etc/nsswitch.conf, especially the
> 'hosts' directive - I have 'files dns' there, that is, first check
> /etc/hosts and then the nameservers in /etc/resolv.conf.
> 

same seqence as yours

> You could check to see what's happening by running tcpdump or ethereal
> in the background when trying the 'ping' command, and then see what
> nameserver gets actually queried. Then you can look in your
> configuration and try to find out what's wrong.
> 



More information about the bind-users mailing list