This API call returns the IP/DNS history for a specific domain. The following records are supported: A, AAAA, MX, NS and SPF. This is a Premium API call, you have to buy API credits.
API request
https://api.dnslytics.net/v1/hostinghistory/<domain>?apikey=<apikey>
Parameters:
domain
Domain name, example dnslytics.com.
apikey
Your API key
API response
A JSON object with the following fields:
status
Status of API call: succeed or error.
question
The requested domain name.
typeinfo
Data type returned, always ‘hostinghistory’.
ipv4
Array of IPv4 history records with IPv4 address and lastseen date.
ipv6
Array of IPv6 history records with IPv6 address and lastseen date.
mx
Array of MX history records with MX record and lastseen date.
ns
Array of NS history records with NS record and lastseen date.
spf
Array of SPF history records with SPF record and lastseen date.
URL
$ curl https://api.dnslytics.net/v1/hostinghistory/dnslytics.com?apikey=<apikey
Output
{
"status": "succeed",
"data":
{
"question": "dnslytics.com",
"typeinfo": "hostinghistory",
"ipv4":[
{
"ip": "104.27.179.200",
"updatedate": "2018-04-29"
},
{"..."}
],
"ipv6":[
{
"ip": "2400:cb00:2048:1::681b:b2c8",
"updatedate": "2018-04-29"
},
{"..."}
],
"dns":[
{
"dns": "cody.ns.cloudflare.com",
"updatedate": "2018-04-29"},
{"..."}
],
"mx":[
{
"mx": "mx1.emailowl.com",
"updatedate": "2018-04-29"},
{"..."}
],
"spf":[
{
"record": "v=spf1 ip4:5.45.109.92 include:smtp1.uservoice.com ~all",
"updatedate":"2018-04-29"
},
{"..."}
]
}
}