domains
GET /v1/domains/{domainId}/dns/records/{recordId}/live
Check whether one DNS record is live for the public yet.
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/records/{recordId}/live \
-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
P4-026. Asks, once and right now, the zone's own authoritative nameservers (the same set getDnsSoa asks) and two public resolvers (1.1.1.1 and 8.8.8.8, each on its own) for the record's name and type, and compares their answers. live: every public resolver that answered returns exactly what the authority serves. spreading: the authority has the change but a public resolver still returns its cached copy (or the authority does not hold the stored value yet); wait_seconds is the longest time a resolver said its cached copy has left, so the customer is told when. unknown: the authority, or every public resolver, could not be asked; never read it as live or not live. published says whether the authority holds the stored value, null when that cannot be judged from the answer (a proxied record, or a type without a comparison). Requires sites.view, RLS-scoped. A record that does not exist or is hidden from the domain's product line is the same 404 the record list gives.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
domainId (path) | Uuid | Yes | The domain's id. |
recordId (path) | string | Yes | The DNS record's provider id. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
record_id | string | Yes | — |
fqdn | string | Yes | The fully qualified name that was asked. |
type | string | Yes | — |
state | string<live, spreading, unknown> | Yes | — |
published | object | Yes | Whether the authority holds the stored value; null when it cannot be judged. |
wait_seconds | object | Yes | When spreading, the longest remaining cache lifetime a public resolver reported (seconds); otherwise null. |
authoritative | DnsResolverAnswer | Yes | — |
public | DnsResolverAnswer[] | Yes | — |
checked_at | string | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 429 · 503