From: Otto Date: Fri, 5 Nov 2021 14:48:28 +0000 (+0100) Subject: If possible, use SuffixMatchNodeRule() instead of RegexRule X-Git-Tag: rec-4.6.0-beta1~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10955%2Fhead;p=thirdparty%2Fpdns.git If possible, use SuffixMatchNodeRule() instead of RegexRule --- 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 ---------------