]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Add a new policy filter event Lua hook
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 24 Aug 2020 13:52:00 +0000 (15:52 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 24 Aug 2020 15:29:41 +0000 (17:29 +0200)
commitacf86ed73e07fb14ca813966ebecac7f6f8d5261
treed24e35c56a949acfa993ee8cd96602b37ff4fa3d
parent0714c2e531bc31bc94e3a4afdbb2de5bcb7659d4
rec: Add a new policy filter event Lua hook

We now do the filtering during the resolution, instead of at the end,
to better match the RPZ specifications. Unfortunately it means that
we need a new hook to be able to act on policy events, since they
can occur in various places.
pdns/lua-recursor4.cc
pdns/lua-recursor4.hh
pdns/pdns_recursor.cc
pdns/recursordist/test-syncres_cc.cc
pdns/syncres.cc
regression-tests.recursor/config.sh
regression-tests.recursor/cross-zone-cname-bogus-nxdomain/expected_result