DNS Lookup API

GET

Read any domain's DNS records from your code in one call.

DNS Lookup retrieves published DNS records for any domain, including IPv4 (A), IPv6 (AAAA), and mail exchange (MX) servers. It provides hostnames, priorities, and dual-stack status flags, while paid plans add TXT, CNAME, and nameserver records.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/dnslookup?domain=myspace.com
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "domain": "myspace.com",
    "records": {
      "A": [
        "34.111.176.156"
      ],
      "AAAA": null,
      "CNAME": null,
      "MX": [
        {
          "exchange": "us-smtp-inbound-1.mimecast.com",
          "priority": 10
        },
        {
          "exchange": "us-smtp-inbound-2.mimecast.com",
          "priority": 10
        }
      ],
      "NS": [
        "ns-cloud-a4.googledomains.com",
        "ns-cloud-a1.googledomains.com",
        "ns-cloud-a2.googledomains.com",
        "ns-cloud-a3.googledomains.com"
      ],
      "PTR": null,
      "SRV": null,
      "SOA": {
        "nsname": "ns-cloud-a1.googledomains.com",
        "hostmaster": "cloud-dns-hostmaster.google.com",
        "serial": 2,
        "refresh": 21600,
        "retry": 3600,
        "expire": 259200,
        "minttl": 300
      },
      "TXT": [
        "cr40m536tje9on1slld9bi81bg",
        "qpdYoeakhlmAxsnmxgAVFmJgUSibqb/y+Eu6GGn8pdmLf+mFGIB3jhRAxIC5KObsPMES9MW2c+oOrpOo/lCQVw==",
        "oZ19a+EOIwWVDPJ7POj14UAGBfzk9xcJMmsTUAMUy7H82sDuVCxvw9rZqdg3znFrdTH04+49zd1djhEAt0ooiA==",
        "MS=ms89904786",
        "google-site-verification=eu-3gW1JePvsGRRCaEvH17YUOTFJNofm4lnz2Pk0LTc",
        "google-site-verification=q0iWqpcfOBclAJaCeWh83v62QQ4uCgbWObQ08p37qgU",
        "al4upe6q5cl13sg4srvfivflvg",
        "v=spf1 mx ip4:63.208.226.34 ip4:204.16.32.0/22 ip4:67.134.143.0/24 ip4:216.205.243.0/24 ip4:34.85.156.5/32 ip4:35.245.108.108/32 ip4:34.86.129.193/32 ip4:34.86.134.94/32 ip4:34.85.222.234/32 ip4:34.86.176.234/32 ip4:34.86.125.212/32 ip4:34.85.224.60/32 ip4:34.86.160.49/32 ip4:35.245.64.166/32 ip4:35.188.226.11/32 ip4:34.86.208.228/32 ip4:34.85.216.144/32 ip4:35.221.22.153/32 ip4:34.86.137.108/32 ip4:34.86.51.35/32 ip4:34.150.221.40/32 ip4:34.85.216.70/32 ip4:34.86.37.191/32 ip4:34.85.214.215/32 ip4:35.236.234.82/32 ip4:34.86.161.241/32 ip4:216.32.181.16 ip4:216.178.32.0/20 ip4:168.235.224.0/24 include:_netblocks.mimecast.com -all",
        "cj65vjpq0s1v9u7vfo020c6rel"
      ],
      "CAA": null
    },
    "summary": {
      "hasIPv6": false,
      "hasMailServers": true,
      "hasSPF": true
    }
  }
}

Start from a template — a working app you can deploy in a minute

About the DNS Lookup API

DNS Lookup works by performing a DNS query to retrieve the DNS records of a domain. It returns the A, MX, and other records of the domain.

What people use it for

Mail Delivery Verification
To verify email destination readiness, onboarding systems query incoming domain MX records and priority values before routing outbound messages.
Dual-Stack Infrastructure Auditing
DevOps engineers inspect IPv4 and IPv6 addresses across client domains to confirm dual-stack network reachability and detect missing AAAA entries.
Domain Migration Monitoring
When moving web infrastructure to new hosts, deployment pipelines check resolving A and MX records in real time to verify DNS propagation.
Custom Domain Onboarding
Hosting platforms query target domains during customer onboarding to verify that resolved IP addresses point to designated web servers.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use DNS Lookup

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the DNS Lookup API.

Read the docs →
Which DNS record types does the lookup return?
The query returns standard records including A, AAAA, and MX records with priority values, along with summary flags for IPv6 and mail server readiness. Upgrading to a paid plan adds CNAME, NS, TXT, and full SOA zone configuration details.
Can I query a full URL or a subdomain?
No, the domain parameter accepts root domain names only, such as example.com. You should not include web protocols like https:// or subdomain prefixes, as the lookup is designed to query root zone records.
Are TXT and nameserver records included on the Free plan?
No, CNAME, NS, SOA, and TXT records require a paid plan, as does the summary flag for SPF verification. The Free plan provides A, AAAA, and MX records, while any paid subscription unlocks the full set of records.
Which plan fits checking 10,000 domains a month?
The Starter plan is sufficient. Each query costs 6 credits, giving you up to 33,333 lookups each month, which works out to about $0.90 per 1,000 calls. The Free plan includes 33 lookups per month for testing.
How fresh is the returned DNS information?
DNS records are queried in real time whenever a request is made. The service performs an active DNS query to fetch live records rather than serving outdated or pre-indexed domain data.
Can I use this DNS data in a commercial product?
Yes, you can integrate and display the returned DNS records inside your own commercial tools or dashboards on any paid plan. The Free plan is restricted to non-commercial evaluation, and direct resale of the raw data is not permitted.

Ready to build with DNS Lookup? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs