domains

GET /v1/domains/{domainId}/dns/records/{recordId}/live

Check whether one DNS record is live for the public yet.

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/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

NameTypeRequiredWhat it is
domainId (path)UuidYesThe domain's id.
recordId (path)stringYesThe DNS record's provider id.

Response

NameTypeRequiredWhat it is
record_idstringYes—
fqdnstringYesThe fully qualified name that was asked.
typestringYes—
statestring<live, spreading, unknown>Yes—
publishedobjectYesWhether the authority holds the stored value; null when it cannot be judged.
wait_secondsobjectYesWhen spreading, the longest remaining cache lifetime a public resolver reported (seconds); otherwise null.
authoritativeDnsResolverAnswerYes—
publicDnsResolverAnswer[]Yes—
checked_atstringYes—

Errors this endpoint can return

401 · 403 · 404 · 429 · 503