Create New Zone
POST /api/zone/{DOMAIN}
Data to be send as json
| Parameter | Type | Description |
|---|---|---|
ns | string, comma seperated | REQUIRED. NS to allocate to this new zone |
active | int(1) | REQUIRED. Zone active 1/0 |
dnssec | int(1) | OPTIONAL. Enable DNSSEC 1/0 |
dsu | string | OPTIONAL. Which DSU to use with DNSSEC (if any) |
ttl | string | OPTIONAL. Default 2d |
refresh | string | OPTIONAL. Default 12h |
retry | string | OPTIONAL. Default 1h |
expire | string | OPTIONAL. Default 3w |
minimum | string | OPTIONAL. Default 2h |
mail | string | OPTIONAL. Default hostmaster.domain.tld |
Example
curl --request POST 'http://HOSTNAME/api/zone/example.com' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer API-TOKEN' \
--data-raw '{"ns":"ns1.domain.dk,ns2.domain.dk", "active":1 }
Response
{
"error": "",
"message": []
}