DNS history
dnsHistoryGet the historical DNS records of a domain, showing how its A, MX, NS and other records changed over time. Use this for investigations and migrations: earlier hosting IPs (for example the origin IP behind a CDN), past mail servers, or name server changes. For the current records only use dnsLookup. For ownership changes use whoisHistory. Costs 2 credits per page. Returns past records, each with the dates it was first and last seen; sort=desc with sortBy=lastSeen puts the most recent first. Results are paginated: raise page to get more, and filter by type to reduce output. A lookup that runs out of time returns a timeout (HTTP 408), so an empty list really means no recorded history. Behavior: read-only. Makes one request to the WhoisFreaks API for your WhoisFreaks account (identified by the WHOISFREAKS_API_KEY environment variable or, on the hosted server, by the API key sent with the request or the account connected with OAuth) and uses that account's API credits; nothing is created or changed. If the call fails, the result is a short message instead of data, for example: the API key was refused (invalid, or plan or credits used up) with what to do next, domain extension not supported (HTTP 403), no data found (HTTP 404), or rate limit reached (HTTP 429).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domainName": "<domainName>"
},
"name": "dnsHistory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for paginated results. Default: 1 | |
| sort | No | Sort the records by sortBy, ascending or descending. Omit for unsorted results. | |
| type | No | Record types to return: 'all' (the default), one type such as A, or a comma-separated list such as a,mx,ns. Supported: A, AAAA, MX, NS, CNAME, SOA, TXT. | |
| format | No | Response format. Default: json | |
| sortBy | No | Date that sort orders by. Only used together with sort. Default: lastSeen | |
| domainName | Yes | Domain name to retrieve historical DNS records for. Example: whoisfreaks.com |