From: Otto Date: Tue, 20 Apr 2021 11:52:38 +0000 (+0200) Subject: Also check query type X-Git-Tag: dnsdist-1.6.0-rc2~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10317%2Fhead;p=thirdparty%2Fpdns.git Also check query type --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 41cda1d9dc..d3c57be009 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -3428,7 +3428,7 @@ bool SyncRes::processRecords(const std::string& prefix, const DNSName& qname, co lwr.d_rcode == RCode::NXDomain && qname.isPartOf(rec.d_name) && rec.d_name.isPartOf(auth); bool putInNegCache = true; - if (negCacheIndiction && isForwardOrAuth(qname)) { + if (negCacheIndiction && qtype == QType::DS && isForwardOrAuth(qname)) { // #10189, a NXDOMAIN to a DS query for a forwarded or auth domain should not NXDOMAIN the whole domain putInNegCache = false; }