From upstream bug reports: https://bugzilla.redhat.com/show_bug.cgi?id=887577 https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/583278 -- Pavel Simerda 2012-12-16 09:25:03 EST AI_ADDRCONFIG may cause getaddrinfo() to filter out IPv4 or IPv6 addresses, depending on the network configuration. Detailed info here: https://fedoraproject.org/wiki/Networking/NameResolution/ADDRCONFIG Related Fedora bug report: https://bugzilla.redhat.com/show_bug.cgi?id=721350 -- Related upstream bug report: http://sourceware.org/bugzilla/show_bug.cgi?id=12398
> AI_ADDRCONFIG may cause getaddrinfo() to filter out IPv4 or IPv6 addresses, > depending on the network configuration. Detailed info here: Of course I meant addresses from /etc/hosts.
In many cases, having localhost point to both IPv4 and IPv6 addesses can serve as a workaround: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 ...