NAME

DNS::Hetzner::API::Zones - Zones

VERSION

version 0.01

SYNOPSIS

use DNS::Hetzner;

my $api_key = '1234abc';
my $dns     = DNS::Hetzner->new(
    token => $api_key,
);

$dns->records->create(
);

ATTRIBUTES

  • endpoint

METHODS

get_export

Export a zone file.

$dns->Zones->get_export(HASH(0x55fcc724f0b8));

create

Creates a new zone.

$dns->Zones->create(HASH(0x55fcc7389db0));

list

Returns paginated zones associated with the user. Limited to 100 zones per request.

$dns->Zones->list(HASH(0x55fcc7385d80));

create_import

Import a zone file in text/plain format.

$dns->Zones->create_import(HASH(0x55fcc7385f60));

update

Updates a zone.

$dns->Zones->update(HASH(0x55fcc73894f8));

delete

Deletes a zone.

$dns->Zones->delete(HASH(0x55fcc7383988));

get

Returns an object containing all information about a zone. Zone to get is identified by 'ZoneID'.

$dns->Zones->get(HASH(0x55fcc7384030));

create_validate

Validate a zone file in text/plain format.

$dns->Zones->create_validate(HASH(0x55fcc737d918));

AUTHOR

Renee Baecker <reneeb@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by Renee Baecker.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)