[Pdns-users] Lua view record - how to return NXDOMAIN?
Peter van Dijk
peter.van.dijk at powerdns.com
Mon Nov 11 11:40:07 UTC 2024
On Tue, 2024-10-29 at 22:14 +0000, Djerk Geurts via Pdns-users wrote:
> Hi all,
>
> Is there a way to return NXDOMAIn instead of a valid response?
>
> test IN LUA CNAME "view({{{'10.0.0.0/16'},{‘ns0.internal.domain.com.'}},{{'0.0.0.0/0'},{''}}})”
>
> I would like to return NXDOMAIN instead of SERVFAIL for sources outside 10.0/16.
returning a CNAME to a name that does not exist will generate NXDOMAIN in
the end.
Kind regards,
--
Peter van Dijk
PowerDNS.com B.V. - https://www.powerdns.com/
More information about the Pdns-users
mailing list