WHOIS This?

    This is a simple module to extract the descriptive whois
information about various IPs as they are stored in the four
regional whois registries of IANA - RIPE (Europe, Middle East,
North Africa), APNIC (Asia/Pacific), ARIN (North America and
Africa) and LACNIC (Latin American & Caribbean).

use Net::Whois::IANA;
my $ip = '132.66.16.2';
my $iana = new Net::Whois::IANA;
$iana->whois_query(-ip=>$ip);
print "Country: " . $iana->country() . "\n";
print "Netname: " . $iana->netname() . "\n";


Previous
Next