[Petter Reinholdtsen]
> When I try again with libnss-myhostname active, I get this result:
> 
>   root@tjener:~# ping6 tjener.intern
>   connect: Invalid argument
>   root@tjener:~# 
> 
> Strace below.

I asked one of the local IPv6 experts, and he said ping6 is not
supposed to be able to ping the IPv6 Link address without specifying
the interface too:

root@tjener:~# getent hosts tjener.intern
fe80::5652:ff:fe1f:e659 tjener.intern
root@tjener:~# ping6 fe80::5652:ff:fe1f:e659
connect: Invalid argument
root@tjener:~# ping6 fe80::5652:ff:fe1f:e659%eth0
PING fe80::5652:ff:fe1f:e659%eth0(fe80::5652:ff:fe1f:e659) 56 data bytes
64 bytes from fe80::5652:ff:fe1f:e659: icmp_seq=1 ttl=64 time=0.017 ms
64 bytes from fe80::5652:ff:fe1f:e659: icmp_seq=2 ttl=64 time=0.025 ms
64 bytes from fe80::5652:ff:fe1f:e659: icmp_seq=3 ttl=64 time=0.025 ms
^C
--- fe80::5652:ff:fe1f:e659%eth0 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.017/0.022/0.025/0.005 ms
root@tjener:~# 

Notice the %eth0 part of the working address.

So if libnss-myhostname insist on returning the Link IPv6 address for
a given machine, it need to add the interface name as part of the
address string.

The reason the interface name is needed, is that the addresses are
only guaranteed to be unique per interface, and it is perfectly
possible to have the same IPv6 link address on several interfaces.

Please change libnss-myhostname to include the interface specifier for
all IPv6 Link addresses returned when looking up the local hostname.
Or just stop returning the IPv6 Link addresses.

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to