WWW::LogicBoxes::DomainAvailability
use WWW::LogicBoxes; my $logic_boxes = WWW::LogicBoxes->new( ... ); my $domain_availabilities = $logic_boxes->check_domain_availability( slds => [qw( cpan drzigman brainstormincubator ], tlds => [qw( com net org )], suggestions => 0, ); for my $domain_availability (@{ $domain_availabilities }) { if ( $domain_availability->is_available ) { print 'Domain: ' . $domain_availability->name . " is available! :) \n"; } else { print 'Domain: ' . $domain_availability->name . " is not available! :( \n"; } }
Contains details about the availability of a domain.
The full domain name (test-domain.com).
Boolean indicating if this domain is available for registration.
The portion of the domain name excluding the public_suffix, (test-domain).
The "root" of the domain (.com). There is an alias of tld to this attribute.
NOTE For domains like test-domain.co.uk the public_suffix is .co.uk. The public suffix is what is available for someone to actually register. For additional information between the distinction between Top Level Domain and Public Suffix please see https://publicsuffix.org/learn/
To install WWW::LogicBoxes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::LogicBoxes
CPAN shell
perl -MCPAN -e shell install WWW::LogicBoxes
For more information on module installation, please visit the detailed CPAN module installation guide.