From 660a62d41320e484387e3d4671ec36cf0d07b942 Mon Sep 17 00:00:00 2001 From: Otto Date: Tue, 20 Apr 2021 13:52:38 +0200 Subject: [PATCH] Also check query type --- pdns/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2