Open dragoangel opened 6 months ago
Can you add an example for a RBL that supports IPv6? Might come in handy to test.
Hi @till - it is, in the first part of issue 😊, with real IP, real blacklist, real response...
I thought spamhaus didn't support ipv6?
I thought spamhaus didn't support ipv6?
https://check.spamhaus.org/faqs/?id=how_does_xbl_handle_ipv6_addresses_
More over you just can paste random ipv6 to https://multirbl.valli.org/ and see most of public rbls that supports ipv6
Currently IPv6 isn't supported by this module.
For example IP
2003:e8:7f1d:f600::
is listed onzen.spamhaus.org
and to check if it is the case we can resolve next record:0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.6.f.d.1.f.7.8.e.0.0.3.0.0.2.zen.spamhaus.org IN A
which is expanded version of IPv6 requested in backward direction as any other IP RBL. as result we will get127.0.0.11
, but/prober?target=2003:e8:7f1d:f600::
will returnluzilla_rbls_errors{rbl="zen.spamhaus.org"} 1
, manually expanding IPv6 and querying exporter also doesn't works/prober?target=2003:00e8:7f1d:f600:0000:0000:0000:0000
.To support IPv6 we need:
:
as we don't need them, split IP to array by 1 char, invert order of array and join it back to string by.
.
to array, invert over of array and join it back to string by.
.
and rbl domain to the end of record and resolve it, profit.