Query Any DNS Record Instantly

DNS Lookup API.

Query any DNS record type for any domain. Returns A, AAAA, MX, TXT, CNAME, NS, SOA, and more. Essential for email validation, domain verification, network diagnostics, and security research.

Free tier, no card< 200ms responses99.9% uptime SLA
GET/v1/dnslookuplive
Response200 OK · sample
{
  "status": "ok",
  "error": null,
  "data": {
    "domain": "myspace.com",
    "records": {
      "A": [
        "34.111.176.156"
      ],
      "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"
      ],
      "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"
      ]
    }
  }
}
Sample response · verify to run one live call, no signup
Integrates with your favorite tools
LangChainn8nZapierMakePipedreamPower AutomatePostman

DNS Lookup API

Query any DNS record type for any domain. Returns A, AAAA, MX, TXT, CNAME, NS, SOA, and more. Essential for email validation, domain verification, network diagnostics, and security research.

  • All DNS record types (A, AAAA, MX, TXT, CNAME, NS, SOA)
  • Fast queries with global DNS resolution
  • SPF, DKIM, and DMARC record parsing
  • TTL and propagation monitoring
  1. 1

    Send one request

    A single authenticated GET with the location you care about — no SDK required.

    GET /v1/dnslookup?query=
    x-api-key: your_key
  2. 2

    We do the aggregation

    Each request pulls from multiple upstream sources and computes the derived fields for you.

  3. 3

    Get clean JSON back

    One structured object, typically under 200 ms — ready to render.

    { domain, records, }

Everything in a single call.

/v1/dnslookupapplication/json
domain"myspace.com"
recordsA, MX, NS, SOA, TXT

What developers build with it.

Real applications shipping on this endpoint today — each with the numbers that made it worth wiring up.

See every use case

Call it in your language.

Copy a working request, or install a typed SDK. Same endpoint, same key.

const res = await fetch("https://api.apiverve.com/v1/dnslookup?domain=myspace.com", {
  headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);

One subscription, the whole query any dns record instantly stack.

Every related API ships with your key — no separate plans, no extra keys, one bill.

See pricing
8APIs in this bundle
99.9%uptime SLA

Wire it into the tools you already run.

Ready-made recipes for Zapier, Make, and n8n — trigger on an event, and the data lands where your team works.

Google Sheets
Log DNS records for new domains
WhenNew row added
ThenLookup DNS → write records to columns
Slack
Alert on DNS lookup failures
WhenScheduled hourly
ThenLookup DNS → post alert if records missing
Airtable
Enrich domain records with DNS data
WhenNew record created
ThenLookup DNS → populate DNS fields
Notion
Build a domain DNS inventory
WhenNew database item created
ThenLookup DNS → update properties
Salesforce
Enrich account domains with DNS data
WhenNew account created
ThenLookup DNS → update custom fields
GitHub
Verify custom domain DNS in PRs
WhenNew pull request opened
ThenLookup DNS → comment with verification result
Browse all integrations

Questions about the API

What DNS record types can I query?
Our API supports all major DNS record types: A (IPv4), AAAA (IPv6), MX (mail servers), TXT (text records), CNAME (aliases), NS (nameservers), SOA (start of authority), PTR (reverse DNS), SRV (services), and CAA (certificate authority).
How fast are DNS lookups?
Most DNS queries complete in under 100ms. We use distributed DNS resolvers globally to ensure fast, reliable responses regardless of your location.
Can I check email server configuration?
Yes! Query MX records to find mail servers, then check TXT records for SPF, DKIM, and DMARC configuration. This is essential for email deliverability analysis.
How do I verify domain ownership?
Many services require adding a TXT record for verification. Use our API to check if the verification record has been added correctly before proceeding with setup.
Can I monitor DNS propagation?
Yes! Query DNS records periodically to check if changes have propagated. Compare results from different resolvers to see propagation status across regions.
What is TTL and why does it matter?
TTL (Time To Live) determines how long DNS records are cached. Lower TTLs allow faster propagation of changes but increase DNS query load. Our API returns TTL values with each record.
Can I query DNS records for subdomains?
Absolutely! Query any subdomain just like a regular domain. This is useful for verifying CDN configuration, checking subdomain ownership, and infrastructure auditing.
How do I check SPF records for email?
Query TXT records for the domain and look for entries starting with "v=spf1". Our API returns all TXT records, making it easy to validate email authentication setup.
Is there a free tier for testing?
Yes! Our free tier includes generous API limits for development and testing. Upgrade to a paid plan when you need higher throughput or production-level reliability.
Can I use this for network diagnostics?
Yes! DNS lookups are fundamental to network troubleshooting. Check if domains resolve correctly, verify nameserver configuration, and diagnose connectivity issues.

Start building with the DNS Lookup API. Free tier, no card required — your key is live in minutes.

Bonus: 300+ more APIs

The same key unlocks every other APIVerve endpoint — reach for them when you need them.

Browse the catalog