Commits

leslie_linden committed adff7ed

Applying patch to c-ares to enable it to fall back to IPv4 for failed IPv6 DNS attempts,
a change recommended by Charlie Fenton <charlief@ssl.berkeley.edu>.

  • Participants
  • Parent commits ec92a3c

Comments (0)

Files changed (1)

c-ares-1.7.4/ares_gethostbyname.c

         }
       end_hquery(hquery, status, host);
     }
-  else if ((status == ARES_ENODATA || status == ARES_EBADRESP ||
-            status == ARES_ETIMEOUT) && hquery->sent_family == AF_INET6)
+  else if (hquery->sent_family == AF_INET6)
     {
       /* The AAAA query yielded no useful result.  Now look up an A instead.
          We should possibly limit this attempt-next logic to AF_UNSPEC lookups