[Unbound-users] Define a local zone to return NXDOMAIN
Sonic
sonicsmith at gmail.com
Sun Aug 31 19:53:38 UTC 2014
On Sun, Aug 31, 2014 at 3:24 PM, Maciej Soltysiak <maciej at soltysiak.com> wrote:
> 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
Refuse does not supply NXDOMAIN.
Test it yourself and see the man page:
===============================================
refuse Send an error message reply, with rcode REFUSED. If there is
a match from local data, the query is answered.
static If there is a match from local data, the query is answered.
Otherwise, the query is answered with nodata or nxdomain.
For a negative answer a SOA is included in the answer if
present as local-data for the zone apex domain.
===============================================
Chris
More information about the Unbound-users
mailing list