Look up DNS records
/dns/v1/lookupResolve live public DNS records (A, AAAA, CNAME, MX, TXT, NS, SOA, CAA) with TTLs and DNSSEC AD signal for a Unicode or Punycode domain. Conclusive resolutions (including NXDOMAIN) count as one billable request; invalid input and resolver failures are not charged.
Parameters
This operation has no published parameters.
Request body
Request fields
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | No | Domain or hostname to query (Unicode or Punycode). |
types | string[] | No | Optional DNS record types to query (A, AAAA, CNAME, MX, TXT, NS, SOA, CAA). Defaults to all 8 types. |
JSON model
Illustrative JSON shape generated from the published schema. Field values are examples, not live results.
{
"domain": "antapi.dev",
"types": [
"A",
"MX",
"TXT"
]
}Success response200
Fields inside data
| Name | Type | Required | Description |
|---|---|---|---|
dnssec | object | No | DNSSEC verification signal from the recursive resolver. |
dnssec.authenticated_data | boolean | No | Whether the resolver set the DNSSEC Authentic Data (AD) flag. |
domain | object | No | Input and normalized domain names. |
domain.input | string | No | Original input domain. |
domain.normalized | string | No | ASCII Punycode domain queried over DNS. |
domain.unicode | string | No | Unicode display form of the domain. |
records | object | No | Parsed DNS records grouped by type. |
records.a | object[] | No | IPv4 A records. |
records.a[].ttl | integer | No | Record time-to-live in seconds. |
records.a[].value | string | No | Resolved IPv4 or IPv6 address. |
records.aaaa | object[] | No | IPv6 AAAA records. |
records.aaaa[].ttl | integer | No | Record time-to-live in seconds. |
records.aaaa[].value | string | No | Resolved IPv4 or IPv6 address. |
records.caa | object[] | No | CAA certificate authority authorization records. |
records.caa[].flags | integer | No | CAA flag byte (128 indicates critical). |
records.caa[].tag | string | No | CAA property tag (issue, issuewild, iodef). |
records.caa[].ttl | integer | No | Record time-to-live in seconds. |
records.caa[].value | string | No | CAA property value. |
records.cname | object[] | No | CNAME alias records. |
records.cname[].target | string | No | Canonical target hostname. |
records.cname[].ttl | integer | No | Record time-to-live in seconds. |
records.mx | object[] | No | MX mail exchange records sorted by priority. |
records.mx[].host | string | No | Mail exchange server hostname. |
records.mx[].priority | integer | No | MX preference value; lower is higher priority. |
records.mx[].ttl | integer | No | Record time-to-live in seconds. |
records.ns | object[] | No | NS authoritative nameserver records. |
records.ns[].host | string | No | Authoritative nameserver hostname. |
records.ns[].ttl | integer | No | Record time-to-live in seconds. |
records.soa | object[] | No | SOA start-of-authority records. |
records.soa[].expire | integer | No | Zone expiry time in seconds. |
records.soa[].minimum | integer | No | Negative caching TTL in seconds. |
records.soa[].mname | string | No | Primary master nameserver. |
records.soa[].refresh | integer | No | Secondary refresh interval in seconds. |
records.soa[].retry | integer | No | Retry interval on failed refresh in seconds. |
records.soa[].rname | string | No | Responsible mailbox in DNS format. |
records.soa[].serial | integer | No | Zone serial number. |
records.soa[].ttl | integer | No | Record time-to-live in seconds. |
records.txt | object[] | No | TXT records. |
records.txt[].ttl | integer | No | Record time-to-live in seconds. |
records.txt[].value | string | No | Concatenated TXT record string. |
resolver | object | No | Recursive resolver metadata. |
resolver.fetched_at | string | No | UTC timestamp when records were fetched. |
resolver.protocol | string | No | Transport protocol used (udp or tcp). |
resolver.server | string | No | Public recursive resolver endpoint used. |
summary | object | No | Resolution status and record totals. |
summary.failed_types | string[] | No | Record types that could not be resolved; empty when all succeeded. |
summary.queried_types | string[] | No | Record types queried in this request. |
summary.status | string | No | Overall resolution status: ok, nxdomain, or partial. |
summary.total_records | integer | No | Total number of DNS records returned across all queried types. |
JSON model
Illustrative JSON shape generated from the published schema. Field values are examples, not live results.
{
"code": 0,
"data": {
"dnssec": {
"authenticated_data": true
},
"domain": {
"input": "antapi.dev",
"normalized": "antapi.dev",
"unicode": "antapi.dev"
},
"records": {
"a": [
{
"ttl": 300,
"value": "93.184.216.34"
}
],
"aaaa": [
{
"ttl": 300,
"value": "93.184.216.34"
}
],
"caa": [
{
"flags": 0,
"tag": "issue",
"ttl": 300,
"value": "letsencrypt.org"
}
],
"cname": [
{
"target": "www.example.com",
"ttl": 300
}
],
"mx": [
{
"host": "aspmx.l.google.com",
"priority": 10,
"ttl": 300
}
],
"ns": [
{
"host": "ns1.example.com",
"ttl": 3600
}
],
"soa": [
{
"expire": 1209600,
"minimum": 3600,
"mname": "ns1.example.com",
"refresh": 7200,
"retry": 3600,
"rname": "hostmaster.example.com",
"serial": 2026120101,
"ttl": 3600
}
],
"txt": [
{
"ttl": 300,
"value": "v=spf1 -all"
}
]
},
"resolver": {
"fetched_at": "2026-12-01T10:00:00Z",
"protocol": "udp",
"server": "1.1.1.1:53"
},
"summary": {
"failed_types": [
"string"
],
"queried_types": [
"A",
"AAAA",
"MX",
"TXT",
"NS"
],
"status": "ok",
"total_records": 8
}
},
"error": ""
}