Zones

You are currently watching the v2 legacy branch documentation.

Internal API: Zones


Add zone:

Add a new zone:

$domain = 'example.com';
$type = 's';
$client_id = 2;
$server_id = 15;
$result = $dns_api->zone->add($domain, $type, $client_id, $server_id);

Type can be:

Standalone = s
Domain = d
Product = p

The $server_id can be ignored when not licensed.


Delete zone:

Delete an existing zone:

$domain = 'example.com';
$result = $dns_api->zone->delete($domain);

Get zone:

Get all records in an existing zone:

$domain = 'example.com';
$result = $dns_api->zone->get($domain);