Maintained by: NLnet Labs

Fwd: DNS Filter

Matt Nelson
Wed Dec 14 22:53:02 CET 2016


 

I'm currently building a DNS filtering service using Unbound and a
Python module. My service should only respond to IP addresses that are
listed in a database; these can be added dynamically. Is there a way of
existing out of the python module so that nothing is sent back to the
client if their IP isn't in the list? 

I have already got the users IP address, and have written some code to
check it against the databse. My issue is that if the IP doens't exit
then all I can do is set "qstate.ext_state[id] = MODULE_ERROR" which
will return a "status: SERVFAIL". Is there a way of returning nothing at
all?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20161214/686c99cc/attachment.html>