NAME
Net::Whois::IP - Perl extension for looking up the whois information for ip addresses
SYNOPSIS
use Net::Whois::IP qw(whoisip_query);
my $ip = "192.168.1.1";
#Response will be a reference to a hash containing all information
#provided by the whois registrar
#The array_of_responses is a reference to an array containing references
#to hashes containing each level of query done. For example,
#many records have to be searched several times to
#get to the correct information, this array contains the responses
#from each level
my ($response,$array_of_responses) = whoisip_query($ip,$optional_multiple_flag);
#if $optional_multiple_flag is not null, all possible responses for a give record will be returned
#for example, normally only the last instance of Tech phone will be give if record
#contains more than one, however, setting this flag to a not null will return both is an array.
#The other consequence, is that all records returned become references to an array and must be
#dereferenced to utilize
#Normal unwrap of $response ($optional_multiple_flag not set) my $response = whoisip_query($ip); foreach (sort keys(%{$response}) ) { print "$_ $response->{$_} \n"; }
#$optional_multiple_flag set to a value my $response = whoisip_query( $ip,"true"); foreach ( sort keys %$response ){ print "$_ is\n"; foreach ( @{ $response->{ $_ } } ) { print " $_\n"; } }
DESCRIPTION
Perl module to allow whois lookup of ip addresses. This module should recursively query the various whois providers until it gets the more detailed information including either OrgName or CustName
AUTHOR
Ben Schmitz -- bschmitz@orbitz.com
Thanks to Orbitz for allowing the community access to this work
Please email me any suggestions, complaints, etc.
SEE ALSO
perl(1). Net::Whois