Permalink
Browse files

don't age the root - this was a mistranslation from 3.x to 4.x

(cherry picked from commit 03c09af)
  • Loading branch information...
ahupowerdns authored and pieterlexis committed May 11, 2017
1 parent d7cfa18 commit 3642cb3d50d1cc819845e03e9ee70babcf1dcaf6
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/syncres.cc
View
@@ -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))

0 comments on commit 3642cb3

Please sign in to comment.