Excessive Response Times for Local DNS Queries

I just finished setting up an internal Ubuntu 9.10 BIND9 DNS server on my home network and when I tried to ping an internal host by FQDN it would take a long time to respond. Actual ping times however where good. I looked at all the normal places one would look at thinking it might have been a bad resolve.conf file or host file entry. I then stumbled across /etc/nsswitch.conf. In the old days you would have nsswitch.conf resolve files first followed by DNS however it seems in Ubuntu 9.10 to look like this:

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

It just did not look right to me and so I changed it to this:

hosts: files dns

Problem now solved. After a bit more research I came across Ubuntu Bug #94940 which also highlighted my problem.

Leave a Reply