]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Do not wipe . NS; this can happen with custom hint files that are
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 28 Oct 2019 15:35:43 +0000 (16:35 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 28 Oct 2019 15:35:43 +0000 (16:35 +0100)
used by regression tests.

pdns/reczones.cc

index 6a04268b6683c7b8a4ac9ddb7e2428c70cb06041..4fd2c32f44fe75a08d49af1cb3f97a1dcb56f277 100644 (file)
@@ -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<DNSRecord> ret;
     sr.beginResolve(qname, QType(QType::NS), QClass::IN, ret);
   }