TODO: there are other ports to check for this same behavior.
debugs(78, 2, "idnsInit: attempt open DNS socket to: " << addr);
+#if USE_IPV6
+ if ( DnsSocket < 0 && addr.IsIPv6() && addr.SetIPv4() ) {
+ /* attempt to open this IPv4-only. */
+ DnsSocket = comm_open(SOCK_DGRAM,
+ IPPROTO_UDP,
+ addr,
+ COMM_NONBLOCKING,
+ "DNS Socket");
+
+ debugs(78, 2, "idnsInit: attempt open DNS socket to: " << addr);
+ }
+#endif
+
if (DnsSocket < 0)
fatal("Could not create a DNS socket");