NAME
POE::Component::Client::Whois::TLDList - Determine the applicable Whois server for a given Top-level domain (TLD).
VERSION
version 1.38
SYNOPSIS
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
E::Component::Client::Whois::TLDList contains a list of top-level domains mapped to which Whois server has information for that domain.
CONSTRUCTOR
new
-
Returns a POE::Component::Client::Whois::TLDList object.
METHODS
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
Chris Williams <chris@bingosnet.co.uk>
COPYRIGHT AND LICENSE
This software is copyright (c) 2020 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.