Maintained by: NLnet Labs

[Unbound-users] Define a local zone to return NXDOMAIN

Maciej Soltysiak
Sun Aug 31 21:24:46 CEST 2014


On Sun, Aug 31, 2014 at 4:51 PM, Philipp Berger
<newsletters at philippberger.de> wrote:
> I would like to perform "reverse nxdomain-highjacking". I have defined
> an existing domain I would like to block as a local zone.
> Currently, I reply with a local IP for those zones. But I would like to
> reply with NXDOMAIN.
You mean you want to reply nxdomain for domains of your choosing?
If so, then this is your answer:

local-zone: "ads.youtube.com" refuse
local-zone: "googlesyndication.com" refuse
# etc..

Best regards,
Maciej