APIs Documentation

How to use DNS Zone API

Get complete DNS Zone record in a structured JSON or XML response.

DNS Zone API use case

Another unbelievably simple API that contains a great deal of important and interesting data. With nameserver information, you can find out which company hosts a certain website (legitimate or a criminal). Or you can check the MX information and see if a company has Google apps or Office 365 installed.

But that’s not all, the nameserver and MX information can become particularly important when you or someone else is migrating their website or email server, so if you are mapping out that particular part of the internet you will definitely want to use our DNS zone API.

DNS zone API
Making a DNS Zone API request with XML format:
Output in JSON format:
    "status": "0",
    "ip": "",
    "mx": [ {
       "priority": "1",
       "name": "aspmx.l.google.com"
       "priority": "5",
       "name": "alt1.aspmx.l.google.com"
       "priority": "5",
       "name": "alt2.aspmx.l.google.com"
       "priority": "10",
       "name": "aspmx2.googlemail.com"
       "priority": "10",
       "name": "aspmx3.googlemail.com"
       "priority": "10",
       "name": "aspmx4.googlemail.com"
       "priority": "10",
       "name": "aspmx5.googlemail.com"
   } ],
    "arecord": [ "" ],
    "soa": {
       "nameserver": "ns1.first-ns.de",
       "email": "postmaster@robot.first-ns.de",
       "serial_number": "2016081102",
       "refresh": "14400",
       "retry": "1800",
       "expire": "604800",
       "min_ttl": "86400"
    "nameservers": [ "ns1.first-ns.de.",
    "robotns3.second-ns.com." ],
    "txt": {
       "raw": "\"v=spf1 ip4: +a +mx +ip4: ?all\"\n",
       "spf": {
          "rule": "Neutral",
          "mx": true,
          "mx_domain": "",
          "a": true,
          "a_domain": "",
          "ip4": [ "",
          "" ],
          "ip6": "",
          "includes": "",
          "redirect": "",
          "explanation": "",
          "ptr": false,
          "ptr_domain": ""
    "requests_available": 100
Making a DNS Zone API request with XML format:
Output in XML format:
<?xml version="1.0"?>
    <raw>"v=spf1 ip4: +a +mx +ip4: ?all"