NAME

POE::Component::Client::Whois::IPBlks - Determine which whois server is responsible for a network address.

VERSION

version 1.32

SYNOPSIS

use strict;
use POE::Component::Client::Whois::IPBlks;

my $ipblks = POE::Component::Client::Whois::IPBlks->new();

my $whois_server = $ipblks->get_server('192.168.1.12');

DESCRIPTION

POE::Component::Client::Whois::IPBlks provides the ability to determine which whois server is responsible for a network address. It has a list of network ranges mapped to whois servers and uses Net::Netmask to determine the appropriate Whois server for the given address.

CONSTRUCTOR

new

Returns a POE::Component::Client::Whois::IPBlks object.

METHODS

get_server

Takes a single argument, an IP address to lookup the Whois for. Returns the applicable whois server or undef on failure.

SEE ALSO

Net::Netmask

http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xhtml

AUTHOR

Chris Williams <chris@bingosnet.co.uk>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Chris Williams.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.