Skip to content

Commit 1238e06

Browse files
committed
disable negative getSOA caching if the negcache_ttl is 0
1 parent 047e412 commit 1238e06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pdns/ueberbackend.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ bool UeberBackend::getSOAUncached(const DNSName &domain, SOAData &sd, DNSPacket
396396
return true;
397397
}
398398

399-
addNegCache(d_question);
399+
if(d_negcache_ttl)
400+
addNegCache(d_question);
400401
return false;
401402
}
402403

0 commit comments

Comments
 (0)