API: ReverseNS

The ReverseNS API call returns domains hosted on the same name server (NS record). This is a Premium API call, you have to buy API credits here (https://dnslytics.com/api).

API request and parameters

https://api.dnslytics.net/v1/reversens/<nsrecord>?apikey=<apikey>

Parameters:

nsrecord:NS record, for example cody.ns.cloudflare.com
apikey:Your API key

Optional parameter:

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 25,000 domains. Page value can be between 1 and 10.

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: nsrecord and page.
typeinfo:Data type returned, always ‘reversens’.
ndomains:Total number of domains found using the NS record.
domains:Array of domains using the NS record. Maximum of 2,500 domain names are returned.

Example

$ https://api.dnslytics.net/v1/nsrecord/cody.ns.cloudflare.com?apikey=<apikey>
{
        "status": "succeed",
        "data":
        {
                "question":
                {
                  "nsrecord": "cody.ns.cloudflare.com",
                  "page": 1
                },
                "typeinfo": "reversens",
                "ndomains": 32367,
                "domains":[
                        "dnslytics.com",
                        "myip.report",
                        "..."
                ]
        }
}