getent does not return IPv6 addresses served by Avahi. for example, ping6 will return unknown host. | $ ping6 woodstock.local | unknown host | | $ ping woodstock.local | PING woodstock.local (10.1.1.2) 56(84) bytes of data. | 64 bytes from 10.1.1.2: icmp_seq=1 ttl=64 time=0.076 ms getent should prefer IPv6 addresses but does not | $ getent hosts woodstock.local | 10.1.1.2 woodstock.local avahi-browse get it right: | $ avahi-browse -a -r | + lan IPv6 woodstock [00:0d:93:c2:1c:6a] Workstation local | + lan IPv4 woodstock [00:0d:93:c2:1c:6a] Workstation local | = lan IPv6 woodstock [00:0d:93:c2:1c:6a] Workstation local | hostname = [woodstock.local] | address = [fe80::20d:93ff:fec2:1c6a] | port = [9] | txt = ["org.freedesktop.Avahi.cookie=284036072"] | = lan IPv4 woodstock [00:0d:93:c2:1c:6a] Workstation local | hostname = [woodstock.local] | address = [10.1.1.2] | port = [9] | txt = ["org.freedesktop.Avahi.cookie=284036072"] in /etc/avahi/avahi-daemon.conf I have | use-ipv6=yes in /etc/nssswitch.conf I have | hosts: files mdns_minimal [NOTFOUND=return] dns my interface is configured as | $ /sbin/ip addr show dev lan | 2: lan: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc htb qlen 1000 | link/ether 00:0d:93:c2:1c:6a brd ff:ff:ff:ff:ff:ff | inet 10.1.1.2/8 brd 10.255.255.255 scope global lan | inet6 fe80::20d:93ff:fec2:1c6a/64 scope link | valid_lft forever preferred_lft forever Configuration (~ppc): * Avahi 0.6.15 * nss-mdns 0.8 * glibc 2.4-r4
Created attachment 104888 [details] strace log of "ping6 woodstock.local"
tedp on #avahi spotted the problem: nss-mdns tries to connect to /var/lib/run/avahi-daemon/socket, a file that does not exist. The socket created by avahi-daemon is at /var/run/avahi-daemon/socket (no /lib after /var). nss-mdns should be patched to use the correct path.
Thanks for the info. Please try out -r1, which has a patch.