|
NAMENet::Whois::ARIN - ARIN whois clientSYNOPSISuse Net::Whois::ARIN; my $w = Net::Whois::ARIN->new( host => 'whois.arin.net', port => 43, timeout => 30, ); # fetch raw whois output as a scalar my $result = $w->query( '207.173.0.0' ); # fetch raw whois output as a list my @results = $w->query( 'NET-207-173-0-0-1' ); # search for a network record my @output = $w->network( '207.173.0.0' ); foreach my $net (@output) { printf( "%s\t(%s)\t%s\n", $net->OrgName, $net->NetHandle, $net->NetRange, ); # display the network's contact information foreach my $cust ($net->contacts) { printf "Contact: %s (%s)\n", $cust->Name, $cust->Email; } } # lookup an autonomous system number my($asn) = $w->asn( 5650 ); printf "AS5650 was assigned to %s\n", $asn->OrgName; # search for a point-of-contact by handle my @contact = $w->contact('DM2339-ARIN'); my @contact_records = $w->domain('eli.net'); # search for an organization record by the OrgId my @org = $w->organization('FRTR'); # search for a customer record by Handle my @customers = $w->customer('C00823787'); DESCRIPTIONThis module provides a Perl interface to the ARIN Whois server. The module takes care of connecting to an ARIN whois server, sending your whois requests, and parsing the whois output. The whois records are returned as lists of Net::Whois::ARIN::* instances.METHODSIn the calling conventions below "[]"'s represent optional parameters.
SEE ALSONet::Whois::ARIN::ASNet::Whois::ARIN::Network Net::Whois::ARIN::Contact Net::Whois::ARIN::Organization Net::Whois::ARIN::Customer AUTHORTodd Caine <todd.caine at gmail.com>COPYRIGHT AND LICENSECopyright (c) 2004-2011 Todd Caine. All rights reserved.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |