[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
Hi,
I'am running avahi-daemon (version 0.6.13) on an computer with many network
interfaces :
# ifconfig | grep ^eth | wc -l
16
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:192.168.42.1 Bcast:192.168.42.255 Masque:255.255.255.0
mDNS services publishing is working very well :
$ avahi-browse -a -r
...
= eth1 IPv4 meuh [00:11:95:25:db:0c] Workstation
local
hostname = [meuh.local]
address = [192.168.42.1]
port = [9]
txt = ["org.freedesktop.Avahi.cookie=1478531472"]
But libnss-mdns does not resolve the *good* address :
$ getent hosts meuh.local
192.168.42.55 meuh.local
$ getent hosts meuh.local
192.168.42.32 meuh.local
$ getent host meuh.local
192.168.42.31 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
http://csquad.org
More information about the avahi
mailing list