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.seReceived on 2017-05-19