[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#705900: check_ping fail if host do not have IPv6 address



So, to summarize:

 1) 'check_ping $(hostname)' in Nagios fail when libnss-myhostname is
    active, because glibc return the IPv6 link local address when
    looking up the IP address of the local host.
 2) ping6 can not ping the IPv6 link local address without an network
    interface specifier.  The same happen with any IPv6 capable
    program.
 3) I've provided a patch for libnss-myhostname to not return IPv6
    link local addresses.
 4) Upstream believe the patch should not be used, and claim
    libnss-myhostname is doing everything correct and the bug is in
    glibc and/or ping6.
 5) The ping6 maintainer claim there is no bug in ping6 and glibc, as
    their handling of addresses in getaddrinfo() is according to the
    specification and work the same on Linux and FreeBSD.

And thus we are left with a libnss-myhostname package that break any
IPv6 capable program trying to connect to the local host name.

Joachim, perhaps time to use the patch I provided in the Debian
package, while we wait for these lofty old wizards to fight out their
world view dispute?

I fail to see the advantage of having libnss-myhostname, which is
intended to make sure it is possible to look up the local host name
and always get a working IP address, return an IPv6 address that can't
be used to ping, connect or pass on.

-- 
Happy hacking
Petter Reinholdtsen


Reply to: