BUG/MINOR: dns: Wrong address family used when creating IPv6 sockets.

AF_INET address family was always used to create sockets to connect
to name servers. This prevented any connection over IPv6 from working.

This fix must be backported to 1.7 and 1.6.
1 file changed