GEThttps://api.deepinfo.com/v1/lookup/dns

Resolves 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

ParameterRequiredDescription
domainRequired
Fully qualified domain name, e.g. deepinfo.com or www.deepinfo.com. IP addresses are not accepted.
Exampledeepinfo.com
typeRequired
DNS record type names, comma-separated, for example A,MX. Up to 5 types per request.
ExampleA,MX

Response Fields

FieldDescription
fqdn
The queried name
requested_types
Record types that were requested
responses[]
One entry per requested type
responses[].type
Record type
responses[].conn_status
success or timeout
responses[].rcode
DNS response code, for example NOERROR or NXDOMAIN
responses[].values
Parsed record values
responses[].raw
The answer in zone-file format
responses[].server
Resolver used
servers
Resolvers used for the lookup
check_date
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.

FieldTypeExample
fqdnstring"deepinfo.com"
requested_typesarray<string>"A"
responsesarray<object>
responses[].typestring"A"
responses[].conn_statusstring"success"
responses[].rcodestring"NOERROR"
responses[].rawstring"deepinfo.com. 300 IN A 104.26.11.21…"
responses[].valuesarray<string>"104.26.10.21"
responses[].serverstring"8.8.8.8"
serversarray<string>"8.8.8.8"
check_datestring"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 RecordsGET/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.

See all examples

Reference updated