我使用自定义的Python模块的Unbound DNS。 根据谁发送查询,我想返回不同的结果。 如何从Python模块获取源IP?
我有这个问题,虽然答案是有logging的,但我发现它很难find。
https://github.com/jedisct1/unbound/blob/master/pythonmod/examples/resip.py