Colin Faber > Net-Whois-Proxy > Net::Whois::Proxy

Download:
Net-Whois-Proxy-1.12.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.12   Source  

NAME ^

Net::Whois::Proxy - an easy to use recursive whois client library

DESCRIPTION ^

The Net::Whois::Proxy library is an easy to use recursive whois client library that does not do any additional parsing of the whois data. It's goal is to quickly track down domain, ipv4, ipv6, and BGP Anonymous System numbers.

SYNOPSIS ^

 use Net::Whois::Proxy;
 my $whois = new Net::Whois::Proxy;

 my $record = $whois->whois('EXAMPLE.COM');

 print $record;

 exit;

Also see the whois.pl example script provided with the library distrobution

METHODS ^

new(option => value)

Create a new Net::Whois::Proxy object.

Avaliable options:

whois(BGP AS # or IPv6 addr or IPv4 addr or PTR or FQDN or IPv4 addr to convert)

Attempt to preform useful commands on the data provided.

If the string provided is: 'AS #' or 'AS#' preform an anonymous system whois query on the IPv4 BGP tree.

 Example:

 print $whois->whois("AS 12345");

If the string provided is an IPv6 address preform an whois query on it.

 Example:

 print $whois->whois("2001:4830:100:20::6");

If the string provided is an IPv4 address preform an whois query on it.

 Example:

 print $whois->whois("63.224.69.57");

If the string provided starts with 'reverse' or 'dns' or 'rdns' and a dotted quad IPv4 address preform a PTR query.

 Example:

 print $whois->whois("reverse 63.224.69.57");

If the string provided starts with 'convert' and a dotted quad IPv4 address or long integer address, convert the address to a long integer address or a dotted quad address

 Example:

 print $whois->whois("convert 63.224.69.57");

convert_ipv4(###.###.###.### or long_int)

Take an IPv4 "dotted quad" address and convert it to long interger format, or an IPv4 long integer address and convert it to the "dotted quad" format.

whois_ipv4(IPv4_dotted_quad or IPv4_long_integer[, whois, port, timeout])

Preform a whois query on an IPv4 address of some type. Optionally query whois on port port and timeout after timeout seconds.

whois_ipv6(IPv6_address)

Preform an IPv6 whois query on IPv6_address

whois_bgp_as(ID)

Preform an whois query on an anonymous system number on the IPv4 BGP tree.

whois_domain(FQDN[, whois, port, timeout)

Preform a recursive whois lookup on a fully qualified domain name (FQDN), Optionally preform the initial query against the whois whois server on port port with the timeout timeout.

check_ipv4(IPv4_dotted_quad)

Attempt to determin if an IPv4 address is syntaxually valid.

errstr()

Return the last error message set.

whois_ptr(IPv4_dotted_quad_address);

Return the PTR / Reverse domain name of a dotted quad IPv4 address.

whois_raw(command, server, port, timeout)

Preform a raw whois with command against the whois server server on the port port with the timeout timeout/

AUTHOR ^

Colin Faber <cfaber@fpsn.net> http://www.fpsn.net

LICENSE ^

(C) Colin Faber All rights reserved. This license may be used under the terms of Perl it self.

REPORTING BUGS ^

Please email all bug reports to me at <cfaber@fpsn.net>. Be sure to include the version of the module you're using along with a sample script which can reproduce the bug and remember if all else fails. debug => 1 is your friend.

syntax highlighting: