]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Also call primeRootNSZones() from syncres (after primeHints())
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 23 Oct 2019 13:18:08 +0000 (15:18 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 23 Oct 2019 13:18:08 +0000 (15:18 +0200)
pdns/recursordist/test-syncres_cc.cc
pdns/syncres.cc

index d74197807893aa7786b9670a4ad591cf0451bac9..46ee34258a2b22b22220c3fbad3330d2e3b2da1a 100644 (file)
@@ -27,6 +27,10 @@ int getMTaskerTID()
   return 0;
 }
 
+void primeRootNSZones(bool)
+{
+}
+
 bool RecursorLua4::preoutquery(const ComboAddress& ns, const ComboAddress& requestor, const DNSName& query, const QType& qtype, bool isTcp, vector<DNSRecord>& res, int& ret) const
 {
   return false;
index 8419150aa19db196c39338812c4502bcc923166d..ae18dd8abe64dd0f32424f4eddc2e297db6098f7 100644 (file)
@@ -1025,6 +1025,7 @@ void SyncRes::getBestNSFromCache(const DNSName &qname, const QType& qtype, vecto
     if(subdomain.isRoot() && !brokeloop) {
       // We lost the root NS records
       primeHints();
+      primeRootNSZones(g_dnssecmode != DNSSECMode::Off);
       LOG(prefix<<qname<<": reprimed the root"<<endl);
       /* let's prevent an infinite loop */
       if (!d_updatingRootNS) {