NAME
WWW::eNom::DomainAvailability
SYNOPSIS
use WWW::eNom;
my $eNom = WWW::eNom->new( ... );
my $domain_availabilities = $eNom->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";
}
}
DESCRIPTION
Contains details about the availability of a domain.
ATTRIBUTES
name
The full domain name (test-domain.com).
is_available
Boolean indicating if this domain is available for registration.
sld
The portion of the domain name excluding the public_suffix, (test-domain).
public_suffix
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/