Loading
Loading
Access historical DNS records (A, AAAA, MX, NS, SOA, SPF, TXT, CNAME) for any hostname or subdomain. Track changes over time with paginated results for comprehensive analysis.
The DNS History Lookup API provides historical DNS data essential for cybersecurity forensics, change auditing, compliance monitoring, domain migration tracking, and detecting DNS hijacking attempts.
Authorize every request with your API key, passed either as a header or as a query parameter:
X-apiKeyapiKeyThis is version v1.0 of the API.
The following parameters can be used in your API requests. All parameters are passed as query string parameters.
formatoptionalStringdefault: jsonResponse format: 'json' (default) or 'xml'.
host-namerequiredStringHostname or URL whose DNS records required.
typerequiredArrayA comma-separated list of DNS record types for lookup. The values can be A, AAAA, MX, NS, SOA, SPF, TXT, CNAME, or all.
pageoptionalIntegerdefault: 1Page no. to retrieve paginated results.
A successful request returns a 200 OK response with a JSON object containing historical DNS records and pagination metadata. See the response preview on the right for the full JSON structure.
totalRecordsTotal number of historical DNS records found.
totalPagesTotal number of pages for paginated results.
currentPageCurrent page number.
queryTime (String), domainName (String), dnsTypes (Object), dnsRecords (Array<Object>)
Besides the response body, every response carries custom headers you can use to track credit usage, and concurrency usage on endpoints that enforce a concurrency limit. See the Custom Response Headers documentation and the endpoints with concurrency limits for more details.
X-Concurrent-Threadsheaderconcurrency-limited endpointsSpecifies the maximum number of concurrent requests allowed.
X-Concurrent-Threads-Activeheaderconcurrency-limited endpointsIndicates the number of active concurrent requests being processed.
X-AF-Credits-Costheaderall responsesSpecifies the number of credits consumed by the current request.
See the HTTP Status Codes documentation for a complete reference of common API errors and HTTP status codes.
Please provide correct dns records type(s) [For Technical Support: support@apifreaks.com]
Please pass domain param correct value[For Technical Support: support@apifreaks.com]
No Record Found across: <HOSTNAME>
Unable to fetch dns records. Please try after some time. [For Technical Support email at: support@apifreaks.com]