Used to update a DNS zone.
For managed zones the name servers and DNSSEC settings can only be changed trough domain update
Name | Type | Description | Restrictions |
---|---|---|---|
zoneId | Integer | The DNS zone ID |
Name | Type | Required / Optional | Description | Restrictions |
---|---|---|---|---|
template | String | Optional | Name of the template to use |
|
link | Boolean | Optional | Unless false, the zone is linked to the template | |
master | String | Optional | IP address of the (hidden) master. To convert a slave zone to a master zone, send an update command with empty value for master |
|
ns | List <String> | Optional | List of name servers for the DNS zone |
|
dnssec | Boolean | Optional | Provision zone with DNSSEC | |
hostMaster | String | Optional | The email address of the hostmaster |
|
refresh | Integer | Optional | The time when the slave will try to refresh the zone from the master, in seconds | |
retry | Integer | Optional | The time between retries if the slave (secondary) fails to contact the master when refresh has expired, in seconds |
|
expire | Integer | Optional | Indicates when the zone data is no longer authoritative, in seconds |
|
ttl | Integer | Optional | The duration that the record may be cached, in seconds |
|
records | List < records > | Optional | DNS records |
Name | Type | Required / Optional | Description | Restrictions |
---|---|---|---|---|
name | String | Required | The full record name. |
|
type | Enum | Required | The record type |
Possible values:
|
content | String | Required | Type specific content of the record |
|
ttl | Integer | Optional | The duration that the record may be cached, in seconds (if not set, the default ttl of template (the ttl key in the request body) is used) | |
prio | Integer | Optional | The priority, mandatory if "type" is MX or SRV |
Besides the generic errors these specific error responses can be expected.
Type | Status | Description |
---|---|---|
DnsConfigurationException | 400 Bad Request | The DNS records contain errors |
POST
/v2/dns/zones/zoneId/update
Content-Type: application/json
{}