POE::Component::Client::Whois::TLDList - Determine the applicable Whois server for a given Top-level domain (TLD).
version 1.36
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();
E::Component::Client::Whois::TLDList contains a list of top-level domains mapped to which Whois server has information for that domain.
new
Returns a POE::Component::Client::Whois::TLDList object.
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.
Chris Williams <chris@bingosnet.co.uk>
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.
To install POE::Component::Client::Whois, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Client::Whois
CPAN shell
perl -MCPAN -e shell install POE::Component::Client::Whois
For more information on module installation, please visit the detailed CPAN module installation guide.