]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
slightly tweak the 'doubting root repriming' logic
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 6 Jan 2015 15:11:12 +0000 (16:11 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 6 Jan 2015 15:11:12 +0000 (16:11 +0100)
pdns/syncres.cc

index e174fbb47fabe18b090e936028ce0cd7b04fb32f..10675693a5a087c909e90cc040784a16989e28ee 100644 (file)
@@ -579,7 +579,8 @@ void SyncRes::getBestNSFromCache(const string &qname, set<DNSResourceRecord>&bes
     LOG(prefix<<qname<<": no valid/useful NS in cache for '"<<subdomain<<"'"<<endl);
     if(subdomain==".") { 
       primeHints(); 
-      throw ImmediateServFailException("query ended up doubting the root, reprimed");
+      if(d_outqueries > 4)
+       throw ImmediateServFailException("query ended up doubting the root, reprimed");
     }
   }while(chopOffDotted(subdomain));
 }