The ReverseMX API call returns domains hosted on the same mail server (MX record). It will only returns domains currently using a MX record. Use the ReverseHistory API to find domains using a MX record in the past. This is a Premium API call, you have to buy API credits.
API request
https://api.dnslytics.net/v1/reversemx/<mxrecord>?apikey=<apikey>
Parameters:
mxrecord
MX record, for example aspmx.l.google.com.
apikey
Your API key
Optional parameters:
page
A single API call returns a maximum of 2,500 domains. With the page parameter you can step through the results and get results up to 100,000 domains. Page value can be between 1 and 40.
API response
A JSON object with the following fields:
status
Status of API call: succeed or error.
question
Array of the question data with the following fields: mxrecord and page.
typeinfo
Data type returned, always ‘reversemx’.
ndomains
Total number of domains found.
domains
Domain names found with the following fields (domain, firstseen, lastseen). Maximum of 2,500 domains are returned. Use the page parameter to get up to 100,000 domain names.
URL
$ curl https://api.dnslytics.net/v1/reversemx/mx1.emailowl.com?apikey=<apikey>
Output
{
"status": "succeed",
"data":
{
"question":
{
"mxrecord": "mx1.emailowl.com",
"page": 1
},
"typeinfo": "reversemx",
"ndomains": 30367,
"domains":[
"dnslytics.com",
"myip.report",
"..."
]
}
}