Lookup
Query DNS records for a domain name from a remote vantage point.
- Path:
/v1/lookup - Methods:
GET,HEAD,QUERY - Required scope:
lookup - Cost: 1 credit per request
HEAD returns the same status and headers as GET, including Content-Length, with an empty body. A successful QUERY adds a Location header for the equivalent GET URL. Location includes name (without a trailing dot), the distinct types, recursion, and transport. It includes server only when the request sent one, dnssec when it is not off, and cd when it is true.
Location: /v1/lookup?name=example.com&types=A%2CMX&recursion=true&transport=auto
Request parameters
Pass parameters on the query string with GET / HEAD, or in a JSON (application/json) or form (application/x-www-form-urlencoded) body with QUERY. Unknown fields are ignored.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
name |
string | Yes | — | Domain name to query (for example example.com). The response name is lowercase ASCII and absolute (example.com.) |
types |
string or string[] | No | A |
Record types from the list below. type is an alias for types |
server |
string | No | Agent default | Public resolver or authoritative server (host, IP, or host:port) |
recursion |
boolean | No | true |
Set false to clear the RD flag. Query strings and form bodies also accept 1, 0, yes, and no. JSON uses a boolean |
transport |
string | No | auto |
auto, udp, or tcp. auto uses UDP, then TCP when the UDP answer has the TC bit |
timeout_ms |
integer | No | 2000 |
Positive integer timeout in milliseconds. Values above 10000 are capped at 10000. 0 is invalid_request |
dnssec |
string | No | off |
off, request, or validate. See DNSSEC results below |
cd |
boolean | No | false |
Set the query CD bit. dnssec=validate sets CD even when this is false. Query strings accept the same boolean spellings as recursion |
region |
string | No | Receiving machine | Three-letter vantage code from Regions. Query string or top-level body field |
Private and special-use target server addresses are rejected with 422 server_not_allowed. A missing name, a body that cannot be parsed, or a bad transport, timeout_ms, dnssec, cd, or region is 400 invalid_request.
types
Names are case-insensitive. The response uses the canonical uppercase name (mx comes back as MX).
On GET and HEAD, repeat types or type, or send one comma-separated value (types=A,MX or types=A&types=MX). On QUERY, send a string, a comma-separated string, or an array of strings. Empty pieces are skipped. If nothing remains, the query is A. Duplicates collapse to the first occurrence, and results follows that order.
At most 16 distinct types. A longer list is 422 limit_exceeded with detail A lookup accepts at most 16 record types.
AXFR is 422 invalid_type with detail "AXFR" is not allowed on /v1/lookup; use /v1/transfer. Zone transfers use /v1/transfer. IXFR, OPT, ZERO, a number (1), and a generic TYPEnnn token (TYPE1) are the same error, with detail "1" is not a DNS record type. * is ANY.
Examples
Using GET
curl -sS "https://api.resolvefrom.com/v1/lookup?name=example.com&types=A,MX®ion=iad" \
-H "Authorization: Bearer $TOKEN"
Using QUERY
curl -sS -X QUERY "https://api.resolvefrom.com/v1/lookup" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "example.com",
"types": ["A", "MX"],
"server": "1.1.1.1",
"recursion": true,
"transport": "auto",
"timeout_ms": 2000,
"region": "iad"
}'
Record types
Every name in this table is accepted. data is the presentation string stored on each resource record. Domain names inside data are absolute and end with a dot. The examples use short stand-in values so the field order is visible.
| Type | Example data |
|---|---|
A |
93.184.216.34 |
NS |
ns1.example.com. |
CNAME |
www.example.com. |
SOA |
ns1.example.com. hostmaster.example.com. 2026112801 7200 900 1209600 86400 |
NULL |
AAECAwQFBgc= |
PTR |
www.example.com. |
HINFO |
x86-64 Linux |
MX |
10 mail.example.com. |
TXT |
"v=spf1 include:_spf.example.com ~all" |
SIG |
A ECDSAP256SHA256 2 3600 1767225600 1735689600 12345 example.com. AQIDBA== |
KEY |
256 3 RSASHA256 AQIDBA== |
AAAA |
2606:2800:220:1:248:1893:25c8:1946 |
SRV |
0 5 443 www.example.com. |
NAPTR |
100 50 "s" "SIP+D2U" "" _sip._udp.example.com. |
CERT |
PKIX 12345 RSASHA256 AQIDBA== |
DS |
2371 13 2 0123456789ABCDEF |
SSHFP |
4 2 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
RRSIG |
A ECDSAP256SHA256 2 3600 1767225600 1735689600 12345 example.com. AQIDBA== |
NSEC |
www.example.com. A NS SOA RRSIG NSEC DNSKEY |
DNSKEY |
257 3 13 AQIDBA== |
NSEC3 |
1 1 0 - 4K1VJ8L5R7 A NS SOA RRSIG DNSKEY NSEC3PARAM |
NSEC3PARAM |
1 0 0 - |
TLSA |
3 1 1 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
SMIMEA |
3 1 1 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
CDS |
2371 13 2 0123456789ABCDEF |
CDNSKEY |
257 3 13 AQIDBA== |
OPENPGPKEY |
AQIDBA== |
CSYNC |
2026112801 3 A NS |
SVCB |
1 svc.example.com. port=443 alpn=h2, |
HTTPS |
1 . alpn=h2,h3, ipv4hint=192.0.2.1, |
CAA |
0 issue "letsencrypt.org" |
TSIG |
hmac-sha256. 1735689600 300 aabbccdd 0 0 ee |
ANY |
Each answer record uses the data format of its own type |
ANAME |
www.example.com. |
* is another way to ask for ANY. The result type is ANY, and each object in answer keeps its own type:
{
"type": "ANY",
"status": "answered",
"rcode": "NOERROR",
"transport": "udp",
"rtt_ms": 9.2,
"flags": {
"aa": true,
"tc": false,
"rd": false,
"ra": false,
"ad": false,
"cd": false,
"do": false
},
"answer": [
{
"name": "example.com.",
"type": "A",
"class": "IN",
"ttl": 300,
"data": "93.184.216.34"
},
{
"name": "example.com.",
"type": "MX",
"class": "IN",
"ttl": 300,
"data": "10 mail.example.com."
}
],
"authority": [],
"additional": []
}
How data is written
- Names.
NS,CNAME,PTR,ANAME, and the name fields inside other types end with a dot. SOA. Primary nameserver, mailbox (the@is a dot), serial, refresh, retry, expire, and minimum, in seconds.MX. Preference, then the exchange name.SRV. Priority, weight, port, then the target name.TXT. Dig-style quoted character-strings, separated by spaces when the wire record has more than one chunk."and\are escaped (\",\\). Bytes outside printable ASCII become a three-digit decimal escape (\001). A long SPF value that spans two 255-byte chunks looks like"v=spf1 ..." "include:_spf.example.com ~all".HINFO. CPU and OS as two unquoted strings.CAA. Flags, tag, then the value in double quotes:0 issue "letsencrypt.org".NAPTR. Order, preference, quoted flags, quoted service, quoted regexp, then the replacement name.NULLandOPENPGPKEY. Standard base64 of the raw RDATA or key.DNSKEYandCDNSKEY. Flags, protocol3, the algorithm number (13is ECDSAP256SHA256), then the public key in base64.KEY. Flags, protocol number, the algorithm name (RSASHA256,ECDSAP256SHA256,ED25519,RSASHA1-NSEC3-SHA1), then the public key in base64.DSandCDS. Key tag, algorithm number, digest type, then the digest in uppercase hex.SSHFP,TLSA, andSMIMEA. Numeric fields, then the fingerprint or certificate association in lowercase hex.SIGandRRSIG. Type covered, algorithm name, label count, original TTL, expiration, inception, key tag, signer name, then the signature in base64. Expiration and inception are Unix seconds.NSEC. Next owner name, then the type names in ascending type-code order.NSEC3. Hash algorithm, flags (1is opt-out), iterations, salt (-when empty), the next hashed owner in unpadded base32hex, then the type names.NSEC3PARAM. Hash algorithm, flags, iterations, and salt.CSYNC. SOA serial, flags (1immediate,2SOA minimum;3is both), then the type names.CERT. Certificate type name (PKIX,SPKI,PGP,IPKIX,ISPKI,IPGP,ACPKIX,IACPKIX,URI,OID), key tag, algorithm name, then the certificate in base64.SVCBandHTTPS. Priority, target name, thenkey=valueparameters. Alias mode uses priority0and a target such assvc.example.com.Service mode on the owner name uses target.. List parameters keep a trailing comma:alpn=h2,,ipv4hint=192.0.2.1,,ipv6hint=2001:db8::1,,mandatory=alpn,.no-default-alpn=has an empty value.echis a quoted base64 string (ech="AQID").portis a bare integer.TSIG. Algorithm name (with a trailing dot, such ashmac-sha256.), time, fudge, MAC in lowercase hex, original id, error code, then other data in lowercase hex.- Records the decoder does not recognize. An answer can still carry a type this API cannot name. That record's
typeisUnknownand itsdatais standard base64 of the raw RDATA. Those types cannot be requested.
A result's type is the type you asked for. answer can also contain other types, such as a CNAME followed by the address it points at, or RRSIG records when dnssec is request or validate.
Response
HTTP 200 with Content-Type: application/json. request_id matches the X-Request-Id header. from is present when the machine has a vantage configured.
| Field | Description |
|---|---|
request_id |
UUIDv7 for this request |
from.provider |
Vantage provider, fly.io on the public API |
from.region |
Three-letter region code |
name |
Queried name, lowercase and absolute |
server.address |
Address that was dialed, host:port |
server.recursion |
The RD flag that was sent |
results |
One object per requested type, in request order |
Each resource record, in answer, authority, or additional:
| Field | Description |
|---|---|
name |
Owner name, lowercase and absolute |
type |
Record type name |
class |
DNS class, IN for lookup answers |
ttl |
Time to live in seconds |
data |
Presentation string from the record type table |
rtt_ms is the exchange time in milliseconds, rounded to one decimal place. transport is udp or tcp, the transport that produced that type's result. With transport=auto, one type can be udp and another tcp.
Flags
Present on answered results. Taken from the DNS message that came back.
| Flag | Meaning |
|---|---|
aa |
Authoritative answer |
tc |
Truncated |
rd |
Recursion desired |
ra |
Recursion available |
ad |
Authenticated data, as set by the server. Local DNSSEC validation does not rewrite this bit |
cd |
Checking disabled, as set on the response |
do |
EDNS DNSSEC OK on the response |
Answered, NOERROR
status is answered whenever a DNS message arrived. rcode is the DNS response code. answer, authority, and additional are always arrays on an answered result, and they can be empty.
{
"request_id": "0195a8c0-7b1e-7000-8000-000000000001",
"from": {
"provider": "fly.io",
"region": "iad"
},
"name": "example.com.",
"server": {
"address": "1.1.1.1:53",
"recursion": true
},
"results": [
{
"type": "A",
"status": "answered",
"rcode": "NOERROR",
"transport": "udp",
"rtt_ms": 11.8,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": false,
"cd": false,
"do": false
},
"answer": [
{
"name": "example.com.",
"type": "A",
"class": "IN",
"ttl": 300,
"data": "93.184.216.34"
}
],
"authority": [],
"additional": []
},
{
"type": "MX",
"status": "answered",
"rcode": "NOERROR",
"transport": "udp",
"rtt_ms": 12.4,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": false,
"cd": false,
"do": false
},
"answer": [
{
"name": "example.com.",
"type": "MX",
"class": "IN",
"ttl": 300,
"data": "10 mail.example.com."
}
],
"authority": [],
"additional": []
}
]
}
One type failing does not fail the others. The HTTP status stays 200, and each entry has its own status and rcode.
Answered, NOERROR, no data
The name exists and the requested type does not. answer is empty. The SOA for the zone is usually in authority.
{
"request_id": "0195a8c0-7b1e-7000-8000-000000000002",
"from": {
"provider": "fly.io",
"region": "iad"
},
"name": "example.com.",
"server": {
"address": "1.1.1.1:53",
"recursion": true
},
"results": [
{
"type": "AAAA",
"status": "answered",
"rcode": "NOERROR",
"transport": "udp",
"rtt_ms": 14.1,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": false,
"cd": false,
"do": false
},
"answer": [],
"authority": [
{
"name": "example.com.",
"type": "SOA",
"class": "IN",
"ttl": 1800,
"data": "ns1.example.com. hostmaster.example.com. 2026112801 7200 900 1209600 86400"
}
],
"additional": []
}
]
}
Answered, NXDOMAIN
The name does not exist. answer is empty, and authority usually carries the SOA.
{
"request_id": "0195a8c0-7b1e-7000-8000-000000000003",
"from": {
"provider": "fly.io",
"region": "iad"
},
"name": "missing.example.com.",
"server": {
"address": "1.1.1.1:53",
"recursion": true
},
"results": [
{
"type": "A",
"status": "answered",
"rcode": "NXDOMAIN",
"transport": "udp",
"rtt_ms": 13.6,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": false,
"cd": false,
"do": false
},
"answer": [],
"authority": [
{
"name": "example.com.",
"type": "SOA",
"class": "IN",
"ttl": 1800,
"data": "ns1.example.com. hostmaster.example.com. 2026112801 7200 900 1209600 86400"
}
],
"additional": []
}
]
}
Answered, SERVFAIL
The server responded and reported a failure. The three record sections are present and empty.
{
"request_id": "0195a8c0-7b1e-7000-8000-000000000004",
"from": {
"provider": "fly.io",
"region": "iad"
},
"name": "example.com.",
"server": {
"address": "1.1.1.1:53",
"recursion": true
},
"results": [
{
"type": "A",
"status": "answered",
"rcode": "SERVFAIL",
"transport": "udp",
"rtt_ms": 20.0,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": false,
"cd": false,
"do": false
},
"answer": [],
"authority": [],
"additional": []
}
]
}
FORMERR, NOTIMP, REFUSED, and NOTAUTH use that same body. Only rcode changes:
rcode |
Typical cause |
|---|---|
FORMERR |
The server rejected the query as malformed |
NOTIMP |
The server does not implement the query |
REFUSED |
The server refused to answer |
NOTAUTH |
The server is not authoritative for the zone |
{
"type": "A",
"status": "answered",
"rcode": "REFUSED",
"transport": "udp",
"rtt_ms": 6.2,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": false,
"ad": false,
"cd": false,
"do": false
},
"answer": [],
"authority": [],
"additional": []
}
{
"type": "A",
"status": "answered",
"rcode": "FORMERR",
"transport": "udp",
"rtt_ms": 5.4,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": false,
"cd": false,
"do": false
},
"answer": [],
"authority": [],
"additional": []
}
{
"type": "A",
"status": "answered",
"rcode": "NOTIMP",
"transport": "udp",
"rtt_ms": 5.1,
"flags": {
"aa": false,
"tc": false,
"rd": false,
"ra": false,
"ad": false,
"cd": false,
"do": false
},
"answer": [],
"authority": [],
"additional": []
}
{
"type": "A",
"status": "answered",
"rcode": "NOTAUTH",
"transport": "udp",
"rtt_ms": 7.7,
"flags": {
"aa": false,
"tc": false,
"rd": false,
"ra": false,
"ad": false,
"cd": false,
"do": false
},
"answer": [],
"authority": [],
"additional": []
}
Any other DNS response code is returned as the uppercased description of that code, in the same answered body:
| DNS response code | rcode in JSON |
|---|---|
YXDOMAIN |
NAME SHOULD NOT EXIST |
YXRRSET |
RR SET SHOULD NOT EXIST |
NXRRSET |
RR SET DOES NOT EXIST |
NOTZONE |
NAME NOT IN ZONE |
BADVERS |
BAD OPTION VERSIONS |
BADSIG |
TSIG FAILURE |
BADKEY |
KEY NOT RECOGNIZED |
BADTIME |
SIGNATURE OUT OF TIME WINDOW |
BADMODE |
BAD TKEY MODE |
BADNAME |
DUPLICATE KEY NAME |
BADALG |
ALGORITHM NOT SUPPORTED |
BADTRUNC |
BAD TRUNCATION |
BADCOOKIE |
BAD SERVER COOKIE |
| Unrecognized | UNKNOWN RESPONSE CODE |
{
"type": "A",
"status": "answered",
"rcode": "NAME SHOULD NOT EXIST",
"transport": "udp",
"rtt_ms": 8.0,
"flags": {
"aa": true,
"tc": false,
"rd": false,
"ra": false,
"ad": false,
"cd": false,
"do": false
},
"answer": [],
"authority": [],
"additional": []
}
Timeout
No DNS message came back before timeout_ms. rcode, flags, answer, authority, and additional are omitted. This is still HTTP 200. A deadline on the whole HTTP request, rather than one DNS exchange, is 504 deadline_exceeded.
{
"request_id": "0195a8c0-7b1e-7000-8000-000000000005",
"from": {
"provider": "fly.io",
"region": "iad"
},
"name": "example.com.",
"server": {
"address": "192.0.2.53:53",
"recursion": true
},
"results": [
{
"type": "A",
"status": "timeout",
"transport": "udp",
"rtt_ms": 2000.0
}
]
}
Network error
The exchange failed before a DNS message arrived, for example because the connection was refused or reset. The omitted fields match a timeout.
{
"request_id": "0195a8c0-7b1e-7000-8000-000000000006",
"from": {
"provider": "fly.io",
"region": "iad"
},
"name": "example.com.",
"server": {
"address": "192.0.2.53:53",
"recursion": true
},
"results": [
{
"type": "A",
"status": "network_error",
"transport": "udp",
"rtt_ms": 18.5
}
]
}
DNSSEC results
dnssec is omitted from the JSON when the request leaves DNSSEC off. flags.ad remains the server's AD bit either way.
curl -sS "https://api.resolvefrom.com/v1/lookup?name=example.com&types=A&dnssec=validate" \
-H "Authorization: Bearer $TOKEN"
dnssec |
Query | What comes back |
|---|---|---|
off |
No DO bit. cd=true still sets the CD bit on the query |
No dnssec object |
request |
DO bit set, so the server returns signatures | dnssec.mode is request, plus any signatures. No local verdict |
validate |
DO and CD set, then the answer is checked against the root trust anchors using the same server | dnssec.status is secure, insecure, bogus, or indeterminate |
Validation is part of the same request and costs the same single credit. NSEC or NSEC3 proves an NXDOMAIN, an empty answer, a wildcard, and a missing DS. A proven missing DS makes the answer insecure.
request
do is true when the server echoed DNSSEC OK. Signature records are also in answer. signatures[].valid is omitted. validated_at, status, reason, and chain are omitted. If the exchange produces no message, the object is { "mode": "request" }.
{
"request_id": "0195a8c0-7b1e-7000-8000-000000000007",
"from": {
"provider": "fly.io",
"region": "iad"
},
"name": "example.com.",
"server": {
"address": "1.1.1.1:53",
"recursion": true
},
"results": [
{
"type": "A",
"status": "answered",
"rcode": "NOERROR",
"transport": "udp",
"rtt_ms": 15.2,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": true,
"cd": false,
"do": true
},
"answer": [
{
"name": "example.com.",
"type": "A",
"class": "IN",
"ttl": 300,
"data": "93.184.216.34"
},
{
"name": "example.com.",
"type": "RRSIG",
"class": "IN",
"ttl": 300,
"data": "A ECDSAP256SHA256 2 3600 1767225600 1735689600 12345 example.com. AQIDBA=="
}
],
"authority": [],
"additional": [],
"dnssec": {
"mode": "request",
"signer": "example.com.",
"signatures": [
{
"type_covered": "A",
"tag": 12345,
"algorithm": "ECDSAP256SHA256",
"signer": "example.com.",
"inception": 1735689600,
"expiration": 1767225600
}
]
}
}
]
}
validate, secure
validated_at is the Unix time used for inception and expiration checks. signatures[].valid is present. chain runs from the root down. reason is omitted when the status is secure.
{
"request_id": "0195a8c0-7b1e-7000-8000-000000000008",
"from": {
"provider": "fly.io",
"region": "iad"
},
"name": "example.com.",
"server": {
"address": "1.1.1.1:53",
"recursion": true
},
"results": [
{
"type": "A",
"status": "answered",
"rcode": "NOERROR",
"transport": "udp",
"rtt_ms": 16.4,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": false,
"cd": true,
"do": true
},
"answer": [
{
"name": "example.com.",
"type": "A",
"class": "IN",
"ttl": 300,
"data": "93.184.216.34"
}
],
"authority": [],
"additional": [],
"dnssec": {
"mode": "validate",
"validated_at": 1767225600,
"status": "secure",
"signer": "example.com.",
"signatures": [
{
"type_covered": "A",
"tag": 12345,
"algorithm": "ECDSAP256SHA256",
"signer": "example.com.",
"inception": 1735689600,
"expiration": 1767225600,
"valid": true
}
],
"chain": [
{
"zone": ".",
"status": "secure",
"dnskeys": [
{
"tag": 20326,
"algorithm": "RSASHA256",
"flags": 257,
"trust_anchor": true
}
]
},
{
"zone": "com.",
"status": "secure",
"ds": [
{
"tag": 19718,
"algorithm": 13,
"digest_type": 2,
"matched": true
}
]
},
{
"zone": "example.com.",
"status": "secure",
"dnskeys": [
{
"tag": 12345,
"algorithm": "ECDSAP256SHA256",
"flags": 257,
"trust_anchor": false
}
]
}
]
}
}
]
}
validate, insecure
A parent proved, with NSEC or NSEC3, that a delegation has no DS. The data is unsigned by design. reason is no_ds, nsec3_opt_out, nsec3_iterations_unsupported (more than 100 NSEC3 iterations), or unsupported_algorithm. The last chain entry is that delegation.
{
"type": "A",
"status": "answered",
"rcode": "NOERROR",
"transport": "udp",
"rtt_ms": 18.0,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": false,
"cd": true,
"do": true
},
"answer": [
{
"name": "example.com.",
"type": "A",
"class": "IN",
"ttl": 300,
"data": "93.184.216.34"
}
],
"authority": [],
"additional": [],
"dnssec": {
"mode": "validate",
"validated_at": 1767225600,
"status": "insecure",
"reason": "no_ds",
"chain": [
{
"zone": "com.",
"status": "secure"
},
{
"zone": "example.com.",
"status": "insecure",
"reason": "no_ds"
}
]
}
}
validate, bogus
The proof failed. reason is one of signature_expired, signature_not_yet_valid, signature_invalid, no_matching_dnskey, ds_mismatch, missing_rrsig, missing_dnskey, missing_ds, unsupported_algorithm, denial_proof_invalid, or wildcard_unproven.
{
"type": "A",
"status": "answered",
"rcode": "NOERROR",
"transport": "udp",
"rtt_ms": 17.3,
"flags": {
"aa": false,
"tc": false,
"rd": true,
"ra": true,
"ad": false,
"cd": true,
"do": true
},
"answer": [
{
"name": "example.com.",
"type": "A",
"class": "IN",
"ttl": 300,
"data": "93.184.216.34"
}
],
"authority": [],
"additional": [],
"dnssec": {
"mode": "validate",
"validated_at": 1767225600,
"status": "bogus",
"reason": "signature_invalid",
"signer": "example.com.",
"signatures": [
{
"type_covered": "A",
"tag": 12345,
"algorithm": "ECDSAP256SHA256",
"signer": "example.com.",
"inception": 1735689600,
"expiration": 1767225600,
"valid": false
}
]
}
}
validate, indeterminate
The answer could not be checked. A DNS timeout uses reason timeout. Other failures to fetch the material use upstream_error. The result status is still the exchange outcome (timeout or network_error), and the answered sections stay omitted.
{
"type": "A",
"status": "timeout",
"transport": "udp",
"rtt_ms": 2000.0,
"dnssec": {
"mode": "validate",
"validated_at": 1767225600,
"status": "indeterminate",
"reason": "timeout"
}
}
Request errors
DNS outcomes above are HTTP 200. These failures are application/problem+json. Each code has its own page under Errors.
| Status | Code | When lookup returns it |
|---|---|---|
| 400 | invalid_request |
Missing name, unreadable body, or transport, timeout_ms, dnssec, cd, or region cannot be parsed |
| 401 | missing_token, token_expired, invalid_token |
Bearer token missing, expired, or rejected |
| 402 | credits_exhausted |
The agent has blocked the team for billing |
| 403 | insufficient_scope |
The token does not include lookup |
| 403 | team_stopped |
The team is suspended |
| 405 | method_not_allowed |
The method is not GET, HEAD, or QUERY |
| 415 | unsupported_media_type |
QUERY used a content type other than JSON or form data |
| 422 | invalid_name |
name is not a DNS name |
| 422 | invalid_type |
A type name is unknown, or the type is AXFR |
| 422 | invalid_server |
server cannot be parsed or resolved |
| 422 | server_not_allowed |
server is a private or special-use address |
| 422 | limit_exceeded |
More than 16 distinct record types |
| 429 | rate_limited |
The team exceeded its rate limit |
| 503 | unavailable |
The region or agent cannot serve the request |
| 504 | deadline_exceeded |
The HTTP request deadline expired |
| 500 | internal_error |
Unexpected failure |