Subject: Re: ares_gethostbyname fails to resolve localhost with AF_INET6

Re: ares_gethostbyname fails to resolve localhost with AF_INET6

From: Jakub Hrozek <jhrozek_at_redhat.com>
Date: Fri, 10 Jun 2011 17:07:22 +0200

On 06/02/2011 12:34 AM, Sebastian Ramacher wrote:
> As I understand the source ares_gethostbyname together with AF_INET6 falls back
> to AF_INET if no IPv6 address can be found (at least if a DNS server is
> queried).

May I ask the rationale for this fallback?

I would expect that when I /intentionally/ query for AF_INET6 only, I
would get v6 addresses only..if I wanted to get both, I would use
AF_UNSPEC..

Received on 2011-06-10