NAME
WebService::DNSMadeEasy::ManagedDomain
SYNOPSIS
# These methods return L<WebService::DNSMadeEasy::ManagedDomain> objects.
my @domains = $dns->managed_domains;
my $domain = $dns->get_managed_domain('example.com');
my $domain = $dns->create_managed_domain('stegasaurus.com');
# actions
$domain->delete;
$domain->update(...); # update some domain attributes
$domain->wait_for_delete;
$domain->wait_for_pending_action;
# attributes
$domain->data; # returns all attributes as a hashref
$domain->active_third_parties;
$domain->created;
$domain->delegate_name_servers;
$domain->folder_id;
$domain->gtd_enabled;
$domain->id;
$domain->name_servers;
$domain->pending_action_id;
$domain->process_multi;
$domain->updated;
# These methods return L<WebService::DNSMadeEasy::ManagedDomain::Record> objects.
$domain->create_record(
name => 'www',
type => 'A',
value => '1.2.3.4',
gtd_location => 'DEFAULT',
ttl => 120,
);
my @records = $domain->records(); # Returns all records
my @records = $domain->records(type => 'CNAME'); # Returns all CNAME records
my @records = $domain->records(name => 'www'); # Returns all wwww records
DESCRIPTION
This object represents a domain.