]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Add a new chain of rules triggered after cache insertion
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 6 Dec 2022 15:23:04 +0000 (16:23 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 6 Dec 2022 15:24:19 +0000 (16:24 +0100)
commita0a790cd0a0d7f15b624ccffae806a8fc60fdb1e
tree4efddfe3a0558bd9f7a67c6b8598d032ae8b64a1
parentc222a568eeee2b5f39e819a3d02828b775d1b8fe
dnsdist: Add a new chain of rules triggered after cache insertion

The general idea is to be able to store the unedited version into
the cache while delivering a different version to the actual client.
This is useful when one is sending different answers to different
clients, like when dealing with abuse traffic, but still want to be
able to cache the initial response from the backend.
We already have a chain of rules that are triggered after a cache-hit,
but until now we lacked the ability to trigger after getting the
response corresponding to a cache-miss.
pdns/dnsdist-lua-actions.cc
pdns/dnsdist-lua-rules.cc
pdns/dnsdist-tcp.cc
pdns/dnsdist-web.cc
pdns/dnsdist.cc
pdns/dnsdist.hh
pdns/dnsdistdist/dnsdist-tcp-upstream.hh
pdns/dnsdistdist/docs/rules-actions.rst
pdns/dnsdistdist/doh.cc
pdns/dnsdistdist/test-dnsdisttcp_cc.cc
regression-tests.dnsdist/test_CacheInsertedResponses.py [new file with mode: 0644]