The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Whois::RIS - Whois lookup on RIPE RIS

VERSION

Version 0.7

SYNOPSIS

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("8.8.8.8");
    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 :

http://www.ripe.net/ris/

methods

The object oriented interface to Net::Whois::RIS is described in this section.

The following methods are provided:

Net::Whois::RIS->new();

This constructor returns a new Net::Whois::RIS object encapsulating whois request to RIPE RIS.

getIPInfo($ipaddress);

The method is gathering the information from the RIS service using the whois protocol.

getASNInfo($asn);

The method is gathering the prefixes announced via the RIS service Ajax (as the whois RIS interface is not providing the service).

getPrefixes();

The method returns the list of prefixes announced by an ASN.

getOrigin();

The method returns a string containing the originating ASN of the network/IP requested.

getDescr();

The method returns a string containing the description of the ASN announcing the network/IP requested.

getRoute();

The method returns a string containing the most specific route match for the requested network/IP address.

AUTHOR

Alexandre Dulaunoy, <adulau at foo.be>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Net::Whois::RIS

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2010-2015 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.