DNS History
GET
https://api.deepinfo.com/v1/analyze/dns-historyReturns the historical DNS records Deepinfo has observed for a domain or FQDN, including values that have since changed or been removed (passive DNS). Use it to see how a domain's hosting, mail and name servers changed over time.
Authentication
Send your API key in the apikey request header.
Query Parameters
| Parameter | Required | Description |
|---|---|---|
domain | Required | Domain name or FQDN, e.g. deepinfo.com or www.deepinfo.com. IP addresses are not accepted.Example deepinfo.com |
type | Optional | Record type to return, for example A. Omit to return every type.Example A |
Response Fields
| Field | Description |
|---|---|
fqdn | The queried name |
dn | Its registered domain |
subdomain | Subdomain part, or null |
records[] | One entry per record type |
records[]. | Record type, in lower case, for example a or mx |
records[]. | One entry per distinct value seen for that type |
records[]. | The value |
records[]. | Every time (UTC, newest first) that value was observed |
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" |
dn | string | "deepinfo.com" |
subdomain | null | |
records | array< | |
records[]. | string | "a" |
records[]. | array< | |
records[]. | string | "104.26.10.21" |
records[]. | array< | "2026-09-18T05:41:26Z" |
Errors
400 if domain is not a valid FQDN.
Examples
The saved example from the Deepinfo API, shown in the request and response panels.
- A Records
GET/analyze/dns-history?domain=deepinfo.com&type=A200 OK
Worked Examples
Worked examples of this endpoint, each on its own page with the exact request and the response it returns.
- Every Record Type of a DomainEvery record type Deepinfo has seen for deepinfo.com: A, AAAA, MX, NS, SOA, TXT and HINFO, each with its values over time.
- A Record History of a DomainThe A record history of deepinfo.com: nine IPv4 addresses, from 192.185.32.176 (2017 to 2019) to the three current Cloudflare addresses.
- Name Server History: HostGator to CloudflareThe NS history of deepinfo.com: HostGator name servers from 2018 to September 2019, Cloudflare name servers since January 2021.