]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
disable negative getSOA caching if the negcache_ttl is 0
authorKees Monshouwer <mind04@monshouwer.org>
Sat, 17 Sep 2016 22:28:41 +0000 (00:28 +0200)
committermind04 <mind04@monshouwer.org>
Sat, 1 Oct 2016 17:02:06 +0000 (19:02 +0200)
pdns/ueberbackend.cc

index 9557b36fc35cc8b73c329be9ecf4b7b12f735b60..efa0e2dd84ece0cdfd7ebe20b179fde1e169159e 100644 (file)
@@ -396,7 +396,8 @@ bool UeberBackend::getSOAUncached(const DNSName &domain, SOAData &sd, DNSPacket
       return true;
     }
 
-  addNegCache(d_question);
+  if(d_negcache_ttl)
+    addNegCache(d_question);
   return false;
 }