>Sometimes, getaddrinfo() returns a proper IPv6 address of the form >::ffff:xx.xx.xx.xx, with the x'es being the IPv4 address. At other times, >the call to getaddrinfo() fails with the error EAI_NODATA, "No address >associated with hostname". I believe that the latter is the correct behaviour. Do you have nscd running on this machine, or anything unusual in nsswitch.conf? p.