Skip to content

Conversation

@bwurst
Copy link

@bwurst bwurst commented Feb 13, 2025

Your comment in the source file says, that dnswl.org did not support IPv6 when you wrote that code.

Times have changed and dnswl supports IPv6. And more and more Mail come to us via IPv6. So I'd like to have IPv6 lookups supported.

My change introduces the use of the python module ipaddress that is in the standard library and exposes the field reverse_pointer since Python 3.5. I don't know if your users depend on older python versions but calculating IPv6 manually is a pain.

@bwurst
Copy link
Author

bwurst commented Feb 14, 2025

Added another important update: dnswl.org sends me a result of 127.0.0.255 when I run into their limit of 100.000 queries a day. So I have to filter out this special result and do not treat it as whitelisted.

As I think both is important - possibly I ran into this limit because I now check all IPv6 connections, too - I did not make a separate pull request but updated this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant