]> granicus.if.org Git - pdns/commit
dnsdist: Check response validity over TCP, more cache fixes
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 4 Mar 2016 17:12:32 +0000 (18:12 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 4 Mar 2016 17:12:32 +0000 (18:12 +0100)
commitf87c4aff63f32f84d8291a04bdeb887c9562613f
tree916f72fb61da6411cacc4fe3b33a42974ec8f47f
parent9c0e95ed6e885519f4e4b24aebc5c33c346f67a7
dnsdist: Check response validity over TCP, more cache fixes

- Add `unsetCache()` to remove the cache from a pool
- Check the response size before caching it, and make no
assumption when getting it from the cache
- Check that the response is larger than sizeof(dnsheader) over
TCP too
- Check that the response matches the query over TCP too, because
we reuse downstream connections
pdns/README-dnsdist.md
pdns/dnsdist-cache.cc
pdns/dnsdist-lua2.cc
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
regression-tests.dnsdist/test_Basics.py