From 51ae18a0e6ab85e703c2cd9c2bd1e84bed660e1f Mon Sep 17 00:00:00 2001 From: MaxHearnden Date: Mon, 22 Sep 2025 15:59:23 +0100 Subject: [PATCH] Reorder rules in dnsdist recursive/authoritative example RDRule is likely to be cheaper to evaluate than a NetmaskGroupRule and so evaluating RDRule first will allow NetmaskGroupRule to sometimes be shortcutted. Co-authored-by: Remi Gacogne Signed-off-by: MaxHearnden --- docs/guides/recursion.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/recursion.rst b/docs/guides/recursion.rst index a9b9d10f7..6e97cc731 100644 --- a/docs/guides/recursion.rst +++ b/docs/guides/recursion.rst @@ -207,7 +207,7 @@ This is where several settings from the existing Authoritative Server recursive_ips:addMask('NETWORKMASK1') -- These network masks are the ones from allow-recursion in the Authoritative Server recursive_ips:addMask('NETWORKMASK2') - addAction(AndRule({NetmaskGroupRule(recursive_ips), RDRule()}), PoolAction('recursor')) + addAction(AndRule({RDRule(), NetmaskGroupRule(recursive_ips)}), PoolAction('recursor')) addAction(AllRule(), PoolAction('auth')) This configuration will route all recursive queries from the netmasks -- 2.47.3