API operation · dns group
POST
/dns/zones
First published 3 Oct 2026
0.1.0Unchanged since publicationCreate a kept DNS zone
Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsallAnswers201 Created
Creates a zone for the administrator to manage independently of any domain or alias. A new zone starts with the server's SOA record, NS record set and glue records. Use --system with the record commands to manage records in the zone.
If name matches an existing automatic zone for the web interface hostname or a nameserver, UrbeStack converts it to a kept zone so it survives changes to the hostname or nameservers. If that automatic zone was previously deleted, UrbeStack restores it as an automatic zone. The response gives the zone name, the creation, conversion and restoration flags, and the publication result.
As a command
Run as root on the servernameDomainNameRequiredA domain name is case-insensitive and stored in lowercase.
Example
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X POST "$API/dns/zones" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "example.com"
}'Response ·
201 Created{
"created": true,
"kept": true,
"published": true,
"reload": "text",
"restored": true,
"zone": "text"
}Errors
8 errors, each a status and a sentence400--name is required400Domain name required400Domain name too long400Invalid domain name401Authentication required409<name> is a hosted name; its zone comes with it409Zone <name> exists already409Zone <name> exists already: it belongs to No error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/post-dns-zones/