]> granicus.if.org Git - pdns/commitdiff
when (re)priming the root, we do so with auth=0. We'll only set auth=1 after we have...
authorbert hubert <bert.hubert@powerdns.com>
Fri, 12 May 2017 10:34:44 +0000 (12:34 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Sat, 13 May 2017 09:42:14 +0000 (11:42 +0200)
(cherry picked from commit 0d032a66afe508cc86a25eef26fc9be0867a117e)

pdns/reczones.cc

index ccffdf454b573912165677d184085dc14b7505df..be47bb6075da5c178c3a425d0484a65c4aca4512 100644 (file)
@@ -94,7 +94,9 @@ void primeHints(void)
       }
     }
   }
-  t_RC->replace(time(0), DNSName("."), QType(QType::NS), nsset, vector<std::shared_ptr<RRSIGRecordContent>>(), false); // and stuff in the cache (auth)
+  DNSName rootdnsname(".");
+  t_RC->doWipeCache(rootdnsname, false, QType::NS);
+  t_RC->replace(time(0), rootdnsname, QType(QType::NS), nsset, vector<std::shared_ptr<RRSIGRecordContent>>(), false); // and stuff in the cache (auth)
 }
 
 static void makeNameToIPZone(SyncRes::domainmap_t* newMap, const DNSName& hostname, const string& ip)