From 3b00ed43e3d8cb69ad4a2590546cfd1aa628266c Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 28 Oct 2019 16:35:43 +0100 Subject: [PATCH] Do not wipe . NS; this can happen with custom hint files that are used by regression tests. --- pdns/reczones.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.47.2