]> granicus.if.org Git - pdns/commitdiff
fix up that we 1) entered the root NSset as DNSName() and not as DNSName(".") and...
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 12 Nov 2015 10:07:49 +0000 (11:07 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 12 Nov 2015 10:07:49 +0000 (11:07 +0100)
pdns/recursor_cache.cc
pdns/reczones.cc

index dc23ed3001624f0658b0c503ba3ed367fd40161f..d807718562699cd2482e99b2ddc9c38b4809828e 100644 (file)
@@ -164,7 +164,7 @@ void MemRecursorCache::replace(time_t now, const DNSName &qname, const QType& qt
   }
 
   // limit TTL of auth->auth NSset update if needed, except for root
-  if(ce.d_auth && auth && qt.getCode()==QType::NS && !(qname == DNSName())) {
+  if(ce.d_auth && auth && qt.getCode()==QType::NS && !qname.isRoot()) {
     // cerr<<"\tLimiting TTL of auth->auth NS set replace"<<endl;
     maxTTD = ce.d_ttd;
   }
index ed4fcbf85f831f03ddc9f111ba657c83003b5abc..4f0237cd2f6f9d2db92a6ca69ba6a87f698070d4 100644 (file)
@@ -101,7 +101,7 @@ void primeHints(void)
       }
     }
   }
-  t_RC->replace(time(0), DNSName(), QType(QType::NS), nsset, vector<std::shared_ptr<RRSIGRecordContent>>(), true); // and stuff in the cache (auth)
+  t_RC->replace(time(0), DNSName("."), QType(QType::NS), nsset, vector<std::shared_ptr<RRSIGRecordContent>>(), true); // and stuff in the cache (auth)
 }
 
 static void makeNameToIPZone(SyncRes::domainmap_t* newMap, const DNSName& hostname, const string& ip)