From: Otto Moerbeek Date: Mon, 28 Oct 2019 15:35:43 +0000 (+0100) Subject: Do not wipe . NS; this can happen with custom hint files that are X-Git-Tag: rec-4.3.0-alpha3^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b00ed43e3d8cb69ad4a2590546cfd1aa628266c;p=thirdparty%2Fpdns.git Do not wipe . NS; this can happen with custom hint files that are used by regression tests. --- diff --git a/pdns/reczones.cc b/pdns/reczones.cc index 6a04268b66..4fd2c32f44 100644 --- a/pdns/reczones.cc +++ b/pdns/reczones.cc @@ -119,7 +119,9 @@ void primeRootNSZones(bool dnssecmode) sr.setDNSSECValidationRequested(true); } for (const auto & qname: t_rootNSZones) { - t_RC->doWipeCache(qname, false, QType::NS); + if (!qname.isRoot()) { + t_RC->doWipeCache(qname, false, QType::NS); + } vector ret; sr.beginResolve(qname, QType(QType::NS), QClass::IN, ret); }