Bug#455762: gethostbyname fails on IPv6 addresses, even with "options inet6"
Adam Majer wrote:
> According to documentation, IPv6 and IPv4 addresses specified should
> be returned without the need to resolve them. No explicit IPv6
> address seems to work.
I reproduced this bug even with "options inet6" in /etc/resolv.conf
With the "options inet6", symbolic names that resolve to an AAAA entry
work, though. As do IPv6 entries in /etc/hosts (such as
"ip6-localhost").
On the other hand, the system seems to have some intelligence, because
(without "options inet6"), ip6-localhost returns 127.0.0.1, and that
ain't from DNS.
--
Lionel
Reply to: