Maintained by: NLnet Labs

filtering with python

Bino Oetomo
Tue Aug 16 04:24:06 CEST 2016


Dear All.

I'm using dns_filter.py from
https://github.com/ohitz/unbound-domainfilter/blob/master/dns_filter.py to
programaticaly filtering.

With this , I can put blocked domain in database and use preconfigured
address as 'IN A'.

my question :
In unbound configuration example, there is lines like 'local-zone: "
doubleclick.net" redirect'.
How to mimic that behaviour using python ? what I need to send as answer to
the query ? how to send 'NXDOMAIN' as answer ?

Sincerely
-bino-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20160816/fcd5560f/attachment.html>