DNS
GET
https://api.deepinfo.com/v1/lookup/dnsResolves the current DNS records of a domain or hostname in real time. Request up to five record types in one call. Each request uses one quota unit, whether you ask for one type or five.
Authentication
Send your API key in the apikey request header.
Query Parameters
| Parameter | Required | Description |
|---|---|---|
domain | Required | Fully qualified domain name, e.g. deepinfo.com or www.deepinfo.com. IP addresses are not accepted.Example deepinfo.com |
type | Required | DNS record type names, comma-separated, for example A,MX. Up to 5 types per request.Example A,MX |
Response Fields
| Field | Description |
|---|---|
fqdn | The queried name |
requested_ | Record types that were requested |
responses[] | One entry per requested type |
responses[]. | Record type |
responses[]. | success or timeout |
responses[]. | DNS response code, for example NOERROR or NXDOMAIN |
responses[]. | Parsed record values |
responses[]. | The answer in zone-file format |
responses[]. | Resolver used |
servers | Resolvers used for the lookup |
check_ | When the lookup was performed (UTC) |
Response Schema
Inferred from examples Built from the saved 2xx example response: the fields it contains, with the types seen there. It is not a contract.
| Field | Type | Example |
|---|---|---|
fqdn | string | "deepinfo.com" |
requested_types | array< | "A" |
responses | array< | |
responses[]. | string | "A" |
responses[]. | string | "success" |
responses[]. | string | "NOERROR" |
responses[]. | string | "deepinfo.com. 300 IN A 104.26.11.21…" |
responses[]. | array< | "104.26.10.21" |
responses[]. | string | "8.8.8.8" |
servers | array< | "8.8.8.8" |
check_date | string | "2026-09-22T12:25:59Z" |
Errors
400 if domain is not a valid FQDN or type is missing.
Examples
The saved example from the Deepinfo API, shown in the request and response panels.
- A and MX Records
GET/lookup/dns?domain=deepinfo.com&type=A,MX200 OK
Worked Examples
Worked examples of this endpoint, each on its own page with the exact request and the response it returns.
- A Records of a DomainThe A records of deepinfo.com: the IPv4 addresses the domain points to, in responses[].values.
- MX Records: Mail ServersThe MX records of gmail.com: its mail servers with their priorities, lowest (preferred) first.
- IPv4 and IPv6 Addresses TogetherA and AAAA of cloudflare.com in one request: one entry per type in responses[].
- Five Types at OnceFive record types of deepinfo.com in one request: A, AAAA, MX, NS and TXT, one responses[] entry each.