Hi

Yes, that's an incorrect behaviour - relaxed mode should work in all
cases where regular resolution works (and can't be broken with external
queries - but if it can then that's a hopeless case...).
Could you try the attached patch (instead of the one you provided) and
see what happens? It stops trying to do qname minimization earlier if it
sees any failures in resolution (e.g. lame servers, as with the domains
you provided), it should work in even more cases than yours does.

Witold
diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c
index b2bc2516d6..774c664283 100644
--- a/lib/dns/resolver.c
+++ b/lib/dns/resolver.c
@@ -4158,7 +4158,7 @@ resume_qmin(isc_task_t *task, isc_event_t *event) {
 	}
 
 	if (NXDOMAIN_RESULT(result) || result == DNS_R_FORMERR ||
-	    result == DNS_R_REMOTEFORMERR)
+	    result == DNS_R_REMOTEFORMERR || result == ISC_R_FAILURE)
 	{
 		if ((fctx->options & DNS_FETCHOPT_QMIN_STRICT) == 0) {
 			fctx->qmin_labels = DNS_MAX_LABELS + 1;
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to