]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #5313 from ahupowerdns/no-root-age
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 11 May 2017 16:35:23 +0000 (18:35 +0200)
committerGitHub <noreply@github.com>
Thu, 11 May 2017 16:35:23 +0000 (18:35 +0200)
don't age the root - this was a mistranslation from 3.x to 4.x

pdns/syncres.cc

index 562c9a2129645c88716838d8811878e7f1d88bbe..1fa95b0bad8721f36d787e69dab3bcae27d39277 100644 (file)
@@ -1351,7 +1351,7 @@ int SyncRes::doResolveAt(NsSet &nameservers, DNSName auth, bool flawedNSSet, con
     for(auto tns=rnameservers.cbegin();;++tns) {
       if(tns==rnameservers.cend()) {
         LOG(prefix<<qname<<": Failed to resolve via any of the "<<(unsigned int)rnameservers.size()<<" offered NS at level '"<<auth<<"'"<<endl);
-        if(!auth.empty() && flawedNSSet) {
+        if(!auth.isRoot() && flawedNSSet) {
           LOG(prefix<<qname<<": Ageing nameservers for level '"<<auth<<"', next query might succeed"<<endl);
 
           if(t_RC->doAgeCache(d_now.tv_sec, auth, QType::NS, 10))