]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Add a new query rules chain triggered after a cache miss
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 8 Mar 2024 15:14:17 +0000 (16:14 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 29 Mar 2024 14:34:51 +0000 (15:34 +0100)
commitcd1675bd166abfe52589cef61724cb61b3431b89
treebdcd4f12b4ad4b943bd199181049b4abeb030972
parentbff64fd2b47743938afad4a8001859bc544ab8e7
dnsdist: Add a new query rules chain triggered after a cache miss

This new chain of rules allows postponing the decision of what to
do with the query to after a cache-lookup has been done. This is
particularly useful when dealing with abuse: we might want to allow
cache hits to be processed normally since they are cheap while dropping/
refusing/routing to a different pool queries that result in a cache
miss.
pdns/dnsdistdist/dnsdist-lua-actions.cc
pdns/dnsdistdist/dnsdist-lua-rules.cc
pdns/dnsdistdist/dnsdist-rule-chains.cc
pdns/dnsdistdist/dnsdist-rule-chains.hh
pdns/dnsdistdist/dnsdist-web.cc
pdns/dnsdistdist/dnsdist.cc
pdns/dnsdistdist/dnsdist.hh
pdns/dnsdistdist/docs/reference/rules-management.rst
pdns/dnsdistdist/test-dnsdisttcp_cc.cc