From: Peter van Dijk Date: Fri, 27 Jan 2017 13:38:47 +0000 (+0100) Subject: document mask negation X-Git-Tag: rec-4.1.0-alpha1~293^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bff113f3f5d44d7db052e08d6e8ecdb6f669a01;p=thirdparty%2Fpdns.git document mask negation --- diff --git a/docs/markdown/recursor/scripting.md b/docs/markdown/recursor/scripting.md index 1f8df6655b..086f7f1c12 100644 --- a/docs/markdown/recursor/scripting.md +++ b/docs/markdown/recursor/scripting.md @@ -268,6 +268,8 @@ if nmg:match(dq.remoteaddr) then end ``` +Prefixing a mask with `!` excludes that mask from matching. + ### IP Addresses We move IP addresses around in native format, called ComboAddress within PowerDNS. ComboAddresses can be IPv4 or IPv6, and unless you want to know, you don't need diff --git a/pdns/README-dnsdist.md b/pdns/README-dnsdist.md index 7361650755..031d8bcadc 100644 --- a/pdns/README-dnsdist.md +++ b/pdns/README-dnsdist.md @@ -1507,7 +1507,7 @@ instantiate a server with additional parameters * member `setCD(bool)`: set checking disabled flag * NetmaskGroup related * function `newNMG()`: returns a NetmaskGroup - * member `addMask(mask)`: adds `mask` to the NetmaskGroup + * member `addMask(mask)`: adds `mask` to the NetmaskGroup. Prefix with `!` to exclude this mask from matching. * member `match(ComboAddress)`: checks if ComboAddress is matched by this NetmaskGroup * member `clear()`: clears the NetmaskGroup * member `size()`: returns number of netmasks in this NetmaskGroup