goldfisch.at-knowledgebase   (by peter pilsl)


  local domains not resolvable (Ubuntu-bug with avahi)

keywords : domain.local dns bind ping host dig recolv.conf nsswitch.conf domain fqdn


On my server I run a nameserver (bind9) with a local zone that holds servers like

server.local A 10.1.1.2
imap.local CNAME server.local
smtp.local CNAME server.local


that all points to the server itself (10.1.1.2)

dig @127.0.0.1 imap.local -> 10.1.1.2

my resolv.conf says:

nameserver: 127.0.0.1

and now the funny thing:

ping imap.local => unknown host imap.local
ping imap => response from server.local


I checked the hosts-file, I checked everything, I monitored tcp-traffic to the nameserver only to find out that when doing "ping imap.local" the nameserver isnt even queried !!
I tried "host 127.0.0.1 imap.local" and it showed the correct answer !!

Thnx to patient Burkhard Ott on comp.os.linux.networking I finally found the solution:

my hosts-entry in nsswitch.conf looked like:

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4


which is default in Ubuntu and which is a big mess !!

This mdns4-stuff is part of ubuntu avahi-framework, that is responsible for network-stuff and especially some kind of zeroconf, which we all hate and fear from windows.

If I assign a static IP and a fully working nameserver to my interface I really expect it to work like

hosts: files dns

Which is the line that should be in nsswitch.conf. After changing the line to this values, everything worked perfect !!









peter at 2008-03-29 (updated 2008-03-29)

serial : 379


If you found any nonsense in this entry or want to see important improvements, I would appreatiate to receive your comments at knowledge@goldfisch.at

disclaimer : all these entries are part of my very private knowledgebase that I created while solving problems. Many solutions are taken from other webpages or from usenet. There is no warranty for this entries of course. Some of the articles are even stupid and one day you might even find the name of my prefered pizza-service in here, cause I always forget about it. Remember : This is my knowledgebase. If you need professional support and are willing to pay for it just email me at pilsl@goldfisch.at
For enlightment take a look at http://leblogsportif.sportnation.at