From 4bff113f3f5d44d7db052e08d6e8ecdb6f669a01 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 27 Jan 2017 14:38:47 +0100 Subject: [PATCH] document mask negation --- docs/markdown/recursor/scripting.md | 2 ++ pdns/README-dnsdist.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.2