[...]
I need to script whois from an external source.
[...]
For obtain what exactly?
I said that in post #3
What I need is a quick way to "color" my blacklist address-lists and I was lazy for a miracle "resolve".
Meaning resolve the list to hostnames.
Right now I have some blacklists and I obtain the info -manually- from AbuseIPDB...
And I paste the info to comments. Yes I can copy paste only the hostname...
https://www.abuseipdb.com/check/45.79.82.183
So, the script:
:foreach a in=[/ip firewall address-list find list=blacklist] do={/ip firewall address-list set $a comment=[:resolve [/ip firewall address-list get $a address]]}} on-error={}
does exactly that except it is simple reverse DNS lookup and the "nice" servers hides or not have the PTRs.
Hence the
whois need.
I would like to have something simple working like:
and hipotethically
:foreach a in=[/ip firewall address-list find list=blacklist] do={/ip firewall address-list set $a comment=[:
whois [/ip firewall address-list get $a address]]}} on-error={}
whould do the trick
Regards