dns: fix workaround for systems defaulting to ipv6-only sockets