Development
Inspect a name's DNS
What every resolver answers for any name, without creating a claim.
/api/dns/inspectA way to see raw observations while building: who runs the zone, and what each server says about the challenge record's name.
Authentication
Send the session cookie. Without it the answer is unauthorized. How sessions work.
Query parameters
namestringrequiredThe domain to look up. Normalized the same way as a claim's input.
Response
200 OK, with every field below present. Times are ISO 8601 strings in UTC.
zoneobjectWho is in charge of this name's DNS.
Show the 3 fields insideInside zone
kindstringWhether the name has nameservers, doesn't exist, or couldn't be looked up.
- One of
delegatednxdomainlookup_failed
- One of
apexstring | nullThe zone the name lives in, when it's delegated.
providerstring | nullWho runs that zone, when it's delegated.
observationsarray of objectsWhat each DNS server answered.
Show what each item hasEach item has
resolverstringWho answered:
authoritative:<nameserver>for one of the domain's own servers, or a public resolver.- One of
googlecloudflare, or a value added later
- One of
serverIpstring | nullThe address that was asked, when we know it.
qnamestringThe name that was looked up.
qtypestringThe record type that was asked for.
- One of
TXTNSSOACNAMEAAAAA
- One of
rcodestring | nullThe DNS response code. Null when no response arrived at all.
- One of
NOERRORNXDOMAINSERVFAILREFUSEDOTHER
- One of
answersarray of stringsThe values that came back, one per record.
cnameChainarray of stringsAny CNAMEs followed on the way to the answer.
adboolean | nullThe DNSSEC authenticated-data flag. Null when the server can't report it.
latencyMsnumberHow long the answer took, in milliseconds.
errorstring | nullHow the lookup went wrong, if it did.
- One of
timeoutservfailrefusednetworkbad_responseno_nameserver_address
- One of
Errors
| Status | Kind | When |
|---|---|---|
| 400 | bad_request | name is missing or longer than 2,000 characters. |
| 401 | unauthorized | The request has no session cookie, or one we don't recognise. |
| 404 | not_found | The server is running in production. |
| 422 | empty | The input is blank. This and the seven kinds below are a 422, each with a message that says what to type instead. |
| 422 | invalid_characters | The input has characters a domain can't contain. |
| 422 | label_too_long | One part between dots is longer than 63 characters. |
| 422 | too_long | The whole name is longer than 253 characters. |
| 422 | ip_address | The input is an IP address, not a domain. |
| 422 | reserved_tld | The ending is set aside, like .test or .localhost. |
| 422 | public_suffix | The input is a suffix many people share, like co.uk, not a domain under it. |
| 422 | single_label | The input has no dot, so there's no ending to look up. |
Any route can also answer 500 with internal_error. Every error has the same shape, described in Errors.