]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix query rules bypass after tagging from a dynblock 16292/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 17 Oct 2025 14:35:34 +0000 (16:35 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 17 Oct 2025 14:35:34 +0000 (16:35 +0200)
commitb2afaadbd8e3403a68a93fa82b7a25be9f89e385
treeffe3850d5b99d9fe2110339357a72abd3f6d8624
parent0c511faccb4aac5d6db8f2a26ad467bb259601b1
dnsdist: Fix query rules bypass after tagging from a dynblock

In 2.0.0 we introduced the ability to set a tag when a dynamic
block matches, making it possible to combine dynamic blocks with
existing rules. Unfortunately the implementation turned out to
bypass query rules after setting a tag, so the mechanism could
only be used with the remaining rules chains (cache hit, cache-miss,
cache inserted, self-answered and regular response rules).
This commit fixes that to ensure that we can use tags with query
rules as well.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist.cc
regression-tests.dnsdist/test_DynBlocksRatio.py