Net::Whois::RIS - Whois lookup on RIPE RIS
The module query the RIPE Routing Information Service (RIS) whois to get information about a specific IP address. You can get information like the AS number announcing the IP address/network.
use Net::Whois::RIS; my $foo = Net::Whois::RIS->new(); $foo->getIPInfo("188.8.131.52"); print $foo->getOrigin(); print $foo->getDescr();
The module can also query the Web interface to gather additional information via the Ajax interface of the RIPE RIS dashboard. The main use is to gather the list of announced prefixes for an ASN.
use Net::Whois::RIS; my $foo = Net::Whois::RIS->new(); $foo->getASNInfo("12684"); print $foo->getPrefixes();
The module's first objective was to provide an easy IP to ASN mapping interface via Perl.
For more information about the RIPE Routing Information Service :
The object oriented interface to
Net::Whois::RIS is described in this section.
The following methods are provided:
This constructor returns a new
Net::Whois::RISobject encapsulating whois request to RIPE RIS.
The method is gathering the information from the RIS service using the whois protocol.
The method is gathering the prefixes announced via the RIS service Ajax (as the whois RIS interface is not providing the service).
The method returns the list of prefixes announced by an ASN.
The method returns a string containing the originating ASN of the network/IP requested.
The method returns a string containing the description of the ASN announcing the network/IP requested.
The method returns a string containing the most specific route match for the requested network/IP address.
<adulau at foo.be>
Please report any bugs or feature requests to
bug-net-whois-ris at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Whois-RIS. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
Copyright 2010 Alexandre Dulaunoy.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.