[dnsdist] Question about the use of the method :addMask(masks)
Jacob Bunk Nielsen
jbn at one.com
Fri Feb 28 07:39:06 UTC 2020
On 27/02/2020 18.47, Ambauen Daniel (ID NET) via dnsdist wrote:
> I try to understand the NetmaskGroup feature.
> https://dnsdist.org/reference/netmaskgroup.html?highlight=mask
>
> :addMask(mask) works fine.
>
> internal_NMG = newNMG()
> internal_NMG:addMask(‘192.168.1.0/24’)
> internal_NMG:addMask(‘192.168.2.0/24’)
> addAction(NetmaskGroupRule(internal_NMG), NoneAction())
What exactly are you trying to do? This will do nothing because that's
what NoneAction() does.
The above config will invoke NoneAction() for all queries from your two
internal /24 networks.
Best regards,
Jacob
More information about the dnsdist
mailing list