DNS Intelligence API

Resolve A, AAAA, MX, NS, TXT, CNAME, and PTR records for any domain with a single API call. Structured JSON. Parallel lookups. Included free with your DetectZeStack API key.

Every Record Type in One Call

A AAAA IP Addresses

IPv4 and IPv6 addresses the domain resolves to. Identify hosting providers, detect CDN usage, and verify DNS propagation.

MX Mail Exchangers

Mail servers sorted by priority. Detect if a company uses Google Workspace, Microsoft 365, Fastmail, Proton Mail, or self-hosted email.

NS Nameservers

Authoritative nameservers for the domain. Identify the DNS provider: Cloudflare, Route 53, DNSimple, NS1, and more.

TXT Text Records

SPF, DKIM, DMARC policies, domain verification tokens (Google, Microsoft, Facebook), and custom metadata.

CNAME Canonical Name

Reveals the true hostname behind a domain. Detect CDNs (CloudFront, Fastly, Akamai), PaaS platforms (Netlify, Vercel), and more.

PTR Reverse DNS

Maps IP addresses back to hostnames. Verify sender reputation, validate hosting claims, and cross-reference infrastructure.

Example API Response

A single GET /dns?domain=stripe.com returns all of this:

{
  "domain": "stripe.com",
  "a": ["185.166.143.18", "185.166.143.19"],
  "aaaa": ["2606:4700::6812:1a6e"],
  "cname": "",
  "mx": [
    {"host": "aspmx.l.google.com.", "priority": 1},
    {"host": "alt1.aspmx.l.google.com.", "priority": 5}
  ],
  "ns": [
    "ns1.p16.dynect.net.",
    "ns2.p16.dynect.net."
  ],
  "txt": [
    "v=spf1 include:_spf.google.com ~all",
    "google-site-verification=abc123..."
  ],
  "soa": null,
  "ptr": ["stripe.com."],
  "query_ms": 245,
  "response_ms": 248
}

Quick Start

Get started in seconds with any language.

cURL

curl -H "X-RapidAPI-Key: YOUR_KEY" \
     -H "X-RapidAPI-Host: detectzestack.p.rapidapi.com" \
     "https://detectzestack.p.rapidapi.com/dns?domain=stripe.com"

Python

import requests

resp = requests.get(
    "https://detectzestack.p.rapidapi.com/dns",
    params={"domain": "stripe.com"},
    headers={
        "X-RapidAPI-Key": "YOUR_KEY",
        "X-RapidAPI-Host": "detectzestack.p.rapidapi.com",
    },
)
data = resp.json()
print(f"MX records: {data['mx']}")
print(f"Nameservers: {data['ns']}")
print(f"TXT records: {data['txt']}")

JavaScript (Node.js)

const resp = await fetch(
  "https://detectzestack.p.rapidapi.com/dns?domain=stripe.com",
  {
    headers: {
      "X-RapidAPI-Key": "YOUR_KEY",
      "X-RapidAPI-Host": "detectzestack.p.rapidapi.com",
    },
  }
);
const data = await resp.json();
console.log("Email provider:", data.mx[0]?.host);
console.log("DNS provider:", data.ns);

Use Cases

Sales Prospecting

Enrich CRM records with email provider, hosting platform, and DNS infrastructure. Identify companies using specific tools before outreach.

Security Auditing

Check SPF/DKIM/DMARC configurations, detect dangling CNAME records, and audit DNS hygiene across your organization's domains.

Competitive Intelligence

Monitor competitors' infrastructure changes: DNS provider migrations, new email platforms, CDN switches, and hosting moves.

Included in All Plans

DNS lookups count against your existing API quota. No separate pricing, no add-ons.

Plan Requests/month Price
Free 100 $0/mo
Pro 1,000 $9/mo
Ultra 10,000 $29/mo
Mega 50,000 $79/mo

Frequently Asked Questions

What is a DNS lookup API?

A DNS lookup API resolves domain names to their associated DNS records (A, MX, NS, TXT, etc.) and returns the results as structured JSON. Unlike command-line tools like dig or nslookup, a DNS API can be integrated directly into applications, pipelines, and automation workflows.

What DNS record types are available?

The API currently returns A (IPv4), AAAA (IPv6), CNAME, MX, NS, TXT, and PTR records. SOA records are planned for a future update. All record types are resolved in parallel for fast response times (typically under 500ms).

How is this different from Google DNS or Cloudflare DNS?

Google DNS (8.8.8.8) and Cloudflare DNS (1.1.1.1) are recursive resolvers that answer one query at a time. The DetectZeStack DNS API resolves all record types in a single request and returns structured JSON, making it much easier to integrate into tools and workflows.

Do DNS lookups count against my rate limit?

Yes. Each DNS lookup counts as one API request against your monthly quota, the same as /analyze or /certificate/check calls. Your existing API key works for all endpoints.

Start resolving DNS records today

Free tier. No credit card required. Get your API key in 30 seconds.

Get Free API Key