domains

GET /v1/domains/{domainId}/dns/zone-file

Export a domain's DNS zone as a standard zone file.

All domains endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/domains/{domainId}/dns/zone-file \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

The domain's DNS records as one RFC 1035 zone file, ready to keep, compare or load into another DNS provider: $ORIGIN and $TTL first, owner names relative to the zone (@ is the apex), host targets fully qualified with a final dot, and a TXT value longer than 255 bytes split into quoted strings. The SOA is left out (the provider manages it). It holds every record the record list shows across all of its pages, with the same product-line filter: a Footprint-Free domain never exports the platform address records the editor hides. Requires sites.view, RLS-scoped. The same two 404s as the record list: NOT_FOUND (no such domain in your scope) and DNS_NOT_HOSTED (we do not host this domain's DNS, so there is no zone to export).

Parameters

NameTypeRequiredWhat it is
domainId (path)UuidYesThe domain's id.

Response

NameTypeRequiredWhat it is
domainstringYesThe zone's name.
filenamestringYesA suggested file name for a download, <domain>.zone.
record_countintegerYesHow many records the file holds.
zone_filestringYesThe zone file text.

Errors this endpoint can return

401 · 403 · 404 · 503