I use Unbound DNS with a custom python module. Based on who sends a query, I want to return different results. How do I get the Source IP from the Python module?

I had this question and though the answer is documented, I found it incredibly hard to find.

https://github.com/jedisct1/unbound/blob/master/pythonmod/examples/resip.py

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.