this is the same bug as 121101 the bug is that getaddrinfo() first looks at IPv6 addresses in /etc/hosts, then tries to look the IPv6 address up in DNS, and only then looks for IPv4 in /etc/hosts.... a woraround is to add the IPv6 address to /etc/hosts but the real bug is in libc6, a nice description is in: http://mail-index.netbsd.org/tech-net/2000/02/10/0009.html