Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159341 - sys-auth/nss-mdns incorrect avahi-daemon socket path
Summary: sys-auth/nss-mdns incorrect avahi-daemon socket path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Saleem Abdulrasool (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-28 21:29 UTC by Gioele Barabucci
Modified: 2006-12-29 23:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
strace log of "ping6 woodstock.local" (ping6.strace,8.67 KB, text/plain)
2006-12-28 21:31 UTC, Gioele Barabucci
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gioele Barabucci 2006-12-28 21:29:07 UTC
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
Comment 1 Gioele Barabucci 2006-12-28 21:31:26 UTC
Created attachment 104888 [details]
strace log of "ping6 woodstock.local"
Comment 2 Gioele Barabucci 2006-12-28 21:56:34 UTC
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.
Comment 3 Saleem Abdulrasool (RETIRED) gentoo-dev 2006-12-29 23:22:04 UTC
Thanks for the info.  Please try out -r1, which has a patch.