]> granicus.if.org Git - pdns/commit
dnsdist: Don't cache answers without any TTL
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 8 Feb 2017 16:19:18 +0000 (17:19 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 8 Feb 2017 16:19:18 +0000 (17:19 +0100)
commita3824e4306892da907960052665644c6f1442465
tree79df43476b9db952c6296372b8e03ac9915434a0
parent0ceb8b594c4b13374069e83272fec19da09a7c07
dnsdist: Don't cache answers without any TTL

`RFC2308` states that "negative responses without SOA records SHOULD
NOT be cached as there is no way to prevent the negative responses
looping forever between a pair of servers even with a short TTL".
pdns/dnsdist-cache.cc
regression-tests.dnsdist/test_Caching.py