Closed Zer0-Tolerance closed 11 months ago
Hello,
the Net::Whois module doesn't pretend to be a full blown replacement for the whois
command.
The whois
command does much more than that my module's simple interface does: when one uses that command line tool one doesn't provide a list of servers to query, it's that program that finds out the best server (just take a look at the whois
man page to find out how clever it is).
My module limits itself to query a single server. Any further logic should be added by the user as they might find convenient. I don't want to slow down the communication process trying to be too clever: sometimes one just wants to know where that particular IP one found in their logs comes from.
this is not my point, my point was to handle a multi value field like descr and others to convert them to an array and not just keep the last value.
Then IIUC I think you missed the :multiple
adverb of the .query
method.
Try modifying this call:
$w.query: '185.87.179.52','whois.ripe.net';
into this:
$w.query: '185.87.179.52','whois.ripe.net', :multiple;
Hi, thanks for your quick fix, I've discovered a new one :
as opposed to this output from the whois cmd , only the last value of descr is kept where it should be an array or a string concat of all values:
Hope this one will be also a quick fix.