Subject: Re: Mixed ipv4/ipv6 from ares_gethostbyname

Re: Mixed ipv4/ipv6 from ares_gethostbyname

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 19 May 2017 08:38:00 +0200 (CEST)

On Thu, 18 May 2017, Pawel Veselov via c-ares wrote:

> One thing I don't understand is what happens when there are both ipv4 and
> ipv6 address records for a host, and I specify AF_UNSPEC for the family.
> AFAIU, struct hostent can only contain records of the same address type.

c-ares still lacks a proper getaddrinfo() replacement so you need to ask
twice: once for v4 and once for v6.

-- 
  / daniel.haxx.se
Received on 2017-05-19