NAME

Webservice::OVH::Domain::Zone

SYNOPSIS

use Webservice::OVH;

my $ovh = Webservice::OVH->new_from_json("credentials.json");

my $zone = $ovh->domain->zone("myzone.de");

my $a_record = $zone->new_record(field_type => 'A', target => '0.0.0.0', ttl => 1000 ); my $mx_record = $zone->new_record(field_type => 'MX', target => '1 my.mail.server.de.');

my $records = $zone->records(filed_type => 'A', sub_domain => 'www');

foreach my $record (@$records) {

    $record->change( target => '0.0.0.0' );
}

$zone->refresh; $zone->reset;

$zone->change_contact(contact_billing => 'account-ovh', contact_tech => 'account-ovh', contact_admin => 'account-ovh');

DESCRIPTION

Provieds basic functionality for Zones. Records can be created and fetched. Records can be fetched through a filter. A zone contact_change can be initialized.

METHODS

_new

Internal Method to create the zone object. This method is not ment to be called external.

service_infos

Retrieves additional infos about the zone. Infos that are not part of the properties

properties

Retrieves properties of the zone. This method updates the intern property variable.

dnssec_supported

Exposed Property Value. Readonly.

has_dns_anycast

Exposed Property Value. Readonly.

last_update

Exposed Property Value. Readonly.

name_servers

Exposed Property Value. Readonly.

records

Produces an Array of record Objects. Can be filtered by field_type and sub_domain.

record

Returns a single record by id

new_record

Creates a new record.

name

Name is the unique identifier.

change_contact

Changes contact information for this zone. Contact must be another ovh account name.

refresh

Refreshes the domain zone and applies changes.

reset

Deletes all custom records and resetzt to default.