Is it possible to have unbound listen to two ports ? The "port" option supports only one value and cannot be used several times, only the last value is used.
I am using unbound to handle black and white lists with a python script. Incoming queries are redirected to port 5353 by nftables and unbound listens to this port. It works very well. Even if the machine which connects has an IP set for DNS (example 8.8.8.8), this will not prevent the packet to be intercepted by unbound.
But what for the queries from the machine which is running unbound ? To be able to filter them, I have to set resolv.conf to 127.0.0.1. It works very well, provided unbound listens to port 53.
The unboundmodule.py is present in /usr/lib/python3/dist-packages
What can I do to debug that ? I found no information of the nature of
the problem.
Upgrade unbound, it should print the error (perhaps it you set verbosity
higher), with the python errors. I believe also unbound-checkconf
prints the python parse failures that could be the reason that the
module is not loading.