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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b87f301bdc574ed58ab4f7390870b11834b53577;p=pdns disable negative getSOA caching if the negcache_ttl is 0 --- diff --git a/pdns/ueberbackend.cc b/pdns/ueberbackend.cc index 18853eada..b558468b9 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; }