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: dnsdist-1.1.0-beta2~105^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b87f301bdc574ed58ab4f7390870b11834b53577;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 18853eada3..b558468b91 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; }