From: Otto Moerbeek Date: Mon, 24 Oct 2022 08:59:49 +0000 (+0200) Subject: If we encounter a loop in QM, continue with the next iteration. X-Git-Tag: dnsdist-1.8.0-rc1~255^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12120%2Fhead;p=thirdparty%2Fpdns.git If we encounter a loop in QM, continue with the next iteration. We would not make progres anyway, and end up repeatedly asking the full name from the roots as the "Trying less specific NS" code path is hit. Noted by and fix from @phonedph1 Fixes #12090 As this is an optimzation for broken domains, this is not an immediate candidate for backporting, though it should be considered for that after more testing. --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 443b94fd63..5dc97741ce 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1737,6 +1737,19 @@ int SyncRes::doResolve(const DNSName &qname, const QType qtype, vector