The dns algorithm number is not yet allocated. These features are
not fully implemented yet.
* Fix _answerfrom comment in ldns_struct_pkt.
+ * Fix drill axfr ipv4/ipv6 queries.
1.6.17 2014-01-10
* Fix ldns_dnssec_zone_new_frm_fp_l to allow the last parsed line of a
ns = ldns_rdf2native_sockaddr_storage(
resolver->_nameservers[ns_i],
ldns_resolver_port(resolver), &ns_len);
+#ifndef S_SPLINT_S
+ if ((ns->ss_family == AF_INET) &&
+ (ldns_resolver_ip6(resolver) == LDNS_RESOLV_INET6)) {
+ /* not reachable */
+ LDNS_FREE(ns);
+ continue;
+ }
+
+ if ((ns->ss_family == AF_INET6) &&
+ (ldns_resolver_ip6(resolver) == LDNS_RESOLV_INET)) {
+ /* not reachable */
+ LDNS_FREE(ns);
+ continue;
+ }
+#endif
resolver->_socket = ldns_tcp_connect_from(
ns, (socklen_t)ns_len,