First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 159341
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Saleem Abdulrasool (RETIRED) <compnerd@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Gioele Barabucci <dev@gioelebarabucci.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ping6.strace strace log of "ping6 woodstock.local" text/plain Gioele Barabucci 2006-12-28 21:31 0000 8.67 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 159341 depends on: Show dependency tree
Bug 159341 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-12-28 21:29 0000
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 From Gioele Barabucci 2006-12-28 21:31:26 0000 -------
Created an attachment (id=104888) [details]
strace log of "ping6 woodstock.local"

------- Comment #2 From Gioele Barabucci 2006-12-28 21:56:34 0000 -------
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 From Saleem Abdulrasool (RETIRED) 2006-12-29 23:22:04 0000 -------
Thanks for the info.  Please try out -r1, which has a patch.

First Last Prev Next    No search results available      Search page      Enter new bug