POE::Component::Client::Whois::TLDList - determine the applicable Whois server for a given Top-level domain (TLD).


POE-Component-Client-Whois documentation  | view source Contained in the POE-Component-Client-Whois distribution.

Index


NAME

Top

POE::Component::Client::Whois::TLDList - determine the applicable Whois server for a given Top-level domain (TLD).

SYNOPSIS

Top

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

  my $tldlist = POE::Component::Client::Whois::TLDList->new();

  my $whois_server = $tldlist->tld('foobar.com');

  $tldlist->dump_tlds();

DESCRIPTION

Top

E::Component::Client::Whois::TLDList contains a list of top-level domains mapped to which Whois server has information for that domain.

CONSTRUCTOR

Top

new

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

METHODS

Top

tld

Takes a domain or hostname and returns a list or an undef on failure. The list returned usually has the reponsible Whois server as the first item in the list, but some TLDs do not have Whois servers.

If the first item in the list is 'NONE' then that TLD doesn't have a Whois server or the Whois is unknown.

If the first item in the list is 'WEB' then that TLD has a web interface only to query whois. The second item will usually be the web url to query.

If the first item in the list is 'ARPA' that that TLD is an .arpa address.

dump_tlds

Uses Data::Dumper to dump TLD data to STDERR.

AUTHOR

Top

Chris BinGOs Williams

LICENSE

Top

Copyright © Chris Williams

This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.


POE-Component-Client-Whois documentation  | view source Contained in the POE-Component-Client-Whois distribution.