Re: getaddrinfo() question

2015-09-30 Thread Eric van Gyzen
On 09/29/2015 17:51, Dmitry Sivachenko wrote: > Hello! > > I have a machine (FreeBSD-10/stable) with both ipv4 and ipv6 addresses > configured. > Also I have ip6addrctl_policy="ipv4_prefer" in rc.conf. > > I am trying to resolve a hostname which has both A and records and I > expect getaddri

getaddrinfo() question

2015-09-29 Thread Dmitry Sivachenko
Hello! I have a machine (FreeBSD-10/stable) with both ipv4 and ipv6 addresses configured. Also I have ip6addrctl_policy="ipv4_prefer" in rc.conf. I am trying to resolve a hostname which has both A and records and I expect getaddrinfo() to return A record because of ipv4_prefer. I am runni