Update a DNS zone
This endpoint allows you to update a zone with DNS hosting only.
Endpoint
PUT /dns/v4/zones/{id}
Parameters
| Name | Location | Required | Type | Default value | Description |
|---|---|---|---|---|---|
| Body | Yes | InputZoneUpdate | The DNS zone |
Response
The updated Zone object.
Example Request
PUT /dns/v4/zones/10000
Content-Type: application/json
Body
{
"name": "example.com",
"nameservers": [
{
"name": "nsa.perf1.fr",
"primary": true
},
{
"name": "nsb.perf1.com",
"primary": false
},
{
"name": "nsc.perf1.com",
"primary": false
},
{
"name": "external.secondary.com",
"primary": false,
"synchronized": true
}
]
}
Example Response
{
"message": "OK",
"data": {
"id": 100000,
"customer_id": 123,
"name": "example.com",
"status": "INSTALLING",
"dnssec_status": "UNSECURED",
"strategic": false,
"dns_hosting_only": true,
"managed_primary_dns": true,
"nameservers": [
{
"name": "nsa.perf1.fr",
"primary": true
},
{
"name": "nsb.perf1.com",
"primary": false
},
{
"name": "nsc.perf1.com",
"primary": false
},
{
"name": "external.secondary.com",
"primary": false,
"synchronized": true
}
]
}
}