You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example IP 2003:e8:7f1d:f600:: is listed on zen.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 get 127.0.0.11, but /prober?target=2003:e8:7f1d:f600:: will return luzilla_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:
check user provided value if it is a valid IPv6
if this is valid IPv6 we need expand IPv6 to it's full version
if this is not valid IPv6 we need check if this is valid IPv4, and if this also not the case set an error for this target
if this IPv6: remove all : as we don't need them, split IP to array by 1 char, invert order of array and join it back to string by .
if this IPv4: split IP by . to array, invert over of array and join it back to string by .
append . and rbl domain to the end of record and resolve it, profit.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: