Skip to main content

Create a DNS zone

This endpoint allows you to create a zone with DNS hosting only.

Endpoint

POST /dns/v3/zones/

Parameters

NameLocationRequiredTypeDefault valueDescription
BodyYesInputZoneCreationThe DNS zone

Response

The created Zone object.

Example Request

POST /dns/v3/zones/
Content-Type: application/json
Body
{
"name": "example.com",
"customer_id": 123,
"nameservers": [
{
"name": "nsa.perf1.fr",
"primary": true
},
{
"name": "nsb.perf1.com",
"primary": false
},
{
"name": "nsc.perf1.com",
"primary": false
}
]
}

Example Response

{
"message": "Created",
"data": {
"id": 100000,
"customer_id": 123,
"name": "example.com",
"status": "INSTALLING",
"dnssec_status": "UNSECURED",
"strategic": false,
"dns_hosting_only": false, |
"managed_primary_dns": true, |
"nameservers": [
{
"name": "nsa.perf1.fr",
"primary": true
},
{
"name": "nsb.perf1.com",
"primary": false
},
{
"name": "nsc.perf1.com",
"primary": false
}
]
}
}