Subject: Re: ares_gethostbyname fails to resolve localhost with AF_INET6

Re: ares_gethostbyname fails to resolve localhost with AF_INET6

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 4 Jun 2011 00:58:26 +0200 (CEST)

On Thu, 2 Jun 2011, Charlie Fenton wrote:

> I have since determined the reason. The problem is that host_callback() in
> ares_gethostbyname.c falls back to IPv4 only for certain error codes, but
> the list of error codes is incomplete. I have fixed this on my local copy
> of c-ares 1.7.4 with the following patch, which falls back to IPv4 for any
> error from the IPv6 attempt:

It is somewhat implied in your mail, but let me ask you anyway: have you
experienced any downsides with this change?

-- 
  / daniel.haxx.se
Received on 2011-06-04