]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
If possible, use SuffixMatchNodeRule() instead of RegexRule 10955/head
authorOtto <otto.moerbeek@open-xchange.com>
Fri, 5 Nov 2021 14:48:28 +0000 (15:48 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Fri, 5 Nov 2021 14:51:57 +0000 (15:51 +0100)
pdns/dnsdistdist/docs/rules-actions.rst

index 3cb0ce2c310b4c11ecafe6a3078cc63945bbbd5f..046a5532dde7383defdc4fd0930a532efb291b05 100644 (file)
@@ -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
 ---------------