]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
don't age the root - this was a mistranslation from 3.x to 4.x
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 11 May 2017 15:18:04 +0000 (17:18 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Sat, 13 May 2017 08:02:25 +0000 (10:02 +0200)
(cherry picked from commit 03c09afecec7098a605a632606600bca2992dfaf)

pdns/syncres.cc

index 6f16f340653570d29154b4d46339240a71bd52ba..be2b707704cba354bf2232c2433eec90950533dc 100644 (file)
@@ -1009,7 +1009,7 @@ int SyncRes::doResolveAt(NsSet &nameservers, DNSName auth, bool flawedNSSet, con
     for(vector<DNSName >::const_iterator tns=rnameservers.begin();;++tns) {
       if(tns==rnameservers.end()) {
         LOG(prefix<<qname<<": Failed to resolve via any of the "<<(unsigned int)rnameservers.size()<<" offered NS at level '"<<auth<<"'"<<endl);
-        if(auth!=DNSName() && 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))