From 8cce28500c28f5227764c0623bd47a4bbeae85e1 Mon Sep 17 00:00:00 2001 From: Otto Date: Fri, 5 Nov 2021 15:48:28 +0100 Subject: [PATCH] If possible, use SuffixMatchNodeRule() instead of RegexRule --- pdns/dnsdistdist/docs/rules-actions.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/dnsdistdist/docs/rules-actions.rst b/pdns/dnsdistdist/docs/rules-actions.rst index 3cb0ce2c31..046a5532dd 100644 --- a/pdns/dnsdistdist/docs/rules-actions.rst +++ b/pdns/dnsdistdist/docs/rules-actions.rst @@ -72,6 +72,9 @@ The regex is applied case insensitively. Alternatively, if compiled in, :func:`RE2Rule` provides similar functionality, but against libre2. +Note that to check if a name is in a list of domains, :func:`SuffixMatchNodeRule` is preferred over complex regular expressions or multiple instances of :func:`RegexRule`. +The :func:`makeRule` convenience function can be used to create a :func:`SuffixMatchNodeRule`. + Rule Generators --------------- -- 2.47.2