[avahi] libnss-mdns + avahi-daemon has strange behavior with many network interfaces

Christophe Nowicki cscm at meuh.dyndns.org
Fri Oct 6 14:52:32 PDT 2006


I'am running avahi-daemon (version 0.6.13) on an computer with many network
interfaces :

# ifconfig | grep ^eth | wc -l

This computer has only one "good" network address (other addresses are
used by vservers) :

# ifconfig eth0
eth0      Lien encap:Ethernet  HWaddr 00:11:95:25:DB:0C
          inet adr:  Bcast:  Masque:

mDNS services publishing is working very well :

$ avahi-browse -a -r
= eth1 IPv4 meuh [00:11:95:25:db:0c]                      Workstation     
   hostname = [meuh.local]
   address = []
   port = [9]
   txt = ["org.freedesktop.Avahi.cookie=1478531472"]

But libnss-mdns does not resolve the *good* address :

$ getent hosts meuh.local   meuh.local

$ getent hosts meuh.local   meuh.local

$ getent host meuh.local   meuh.local

The network address returned by libnss-mdns is randomely selected within
the network addresses used by the server.

I think that would be nice to bind the avahi-daemon on a network interface
with a directive in the avahi-daemon.conf file.

Best Regards,
Nowicki Christophe

More information about the avahi mailing list