Permalink
Browse files

disable negative getSOA caching if the negcache_ttl is 0

  • Loading branch information...
1 parent 047e412 commit 1238e06ab5ad989ed8a9909a9f96e90869e86da1 @mind04 mind04 committed with mind04 Sep 17, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 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;
}

0 comments on commit 1238e06

Please sign in to comment.