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..