From: Kees Monshouwer Date: Sat, 17 Sep 2016 22:28:41 +0000 (+0200) Subject: disable negative getSOA caching if the negcache_ttl is 0 X-Git-Tag: auth-4.0.2~19^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1238e06ab5ad989ed8a9909a9f96e90869e86da1;p=thirdparty%2Fpdns.git disable negative getSOA caching if the negcache_ttl is 0 --- diff --git a/pdns/ueberbackend.cc b/pdns/ueberbackend.cc index 9557b36fc3..efa0e2dd84 100644 --- a/pdns/ueberbackend.cc +++ b/pdns/ueberbackend.cc @@ -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; }