1
General Discussion / Re: Python Module Unbound DNS - please help
« on: May 03, 2024, 06:16:46 pm »
Hi Franco,
Thanks for answer me. I moved to the /var/unbound folder and I have included my script to be called from the dnsbl_module.py.
If I throw a random "myfunction_to_log("test")" around the dnbl_module, for example in the deinit method, my function works and the "test" is being logged but, if I do the same thing on the method "operate" then it is not being called.
How is it possible that is not being called since its the main method that handles queries and responses? I tried to play with the module-config order but still nothing.
In addition, when I restart the unbound it doesn't mention "python loaded" even if my test function works.
PS: When I reboot the system, all my configuration made in dnsbl_module.py disappears. How can I make it permanent?
Thanks for answer me. I moved to the /var/unbound folder and I have included my script to be called from the dnsbl_module.py.
If I throw a random "myfunction_to_log("test")" around the dnbl_module, for example in the deinit method, my function works and the "test" is being logged but, if I do the same thing on the method "operate" then it is not being called.
How is it possible that is not being called since its the main method that handles queries and responses? I tried to play with the module-config order but still nothing.
In addition, when I restart the unbound it doesn't mention "python loaded" even if my test function works.
PS: When I reboot the system, all my configuration made in dnsbl_module.py disappears. How can I make it permanent?