DNS Lookup API
Query 14+ record types, monitor propagation across global resolvers, validate DNSSEC, and detect misconfigurations — all from Cloudflare's global edge network with consistent JSON responses.
What you can do
Real outcomes teams achieve with DNS Lookup
Multi-Record Type Queries
Query 22 DNS record types including A, AAAA, MX, TXT, NS, CNAME, SOA, SRV, CAA, PTR, DNSKEY, DS, TLSA, NAPTR, SSHFP, HTTPS, SVCB, DNAME, LOC, URI, CERT, and SMIMEA with structured JSON responses. Use type=ALL to fan out across all 22 types in parallel.
Modern HTTPS / SVCB records (RFC 9460)
Parse HTTPS and SVCB SvcParams — alpn, port, ipv4hint, ipv6hint, ech — into structured fields. Confirms HTTP/3 readiness and Encrypted Client Hello key publication in one lookup, without manual parsing of dig presentation form.
DNS Propagation Monitoring
Check DNS consistency across 8+ global resolvers to verify record changes have propagated worldwide before announcing deployments.
Cryptographic DNSSEC Validation
Real RRSIG signature verification and DS-digest verification per RFC 4034 — not just record-presence checks. Supports RSA-SHA256/512, ECDSA P-256/P-384, and Ed25519. Surfaces the exact failure mode (e.g., "DS at registrar doesn't match published KSK") so remediation is concrete.
Nameserver Analysis
Identify DNS providers, verify each NS responds authoritatively (the gold-standard lame-delegation test per RFC 1034), and detect missing in-bailiwick glue. Aggregates IPv6 reachability for federal / public-sector procurement audits per RFC 3901.
Single-call DNS health audit
The zone-hygiene composite endpoint runs nine independent checks in parallel — DNSSEC, CAA, AXFR, NSEC3, open-resolver, SOA, wildcard, sensitive subdomains, and NS redundancy — and aggregates a weighted hygiene score (0–100) plus letter grade.
Simple Integration
Get started in minutes with our RESTful API, or connect via MCP and let your AI call these endpoints directly. Clean documentation, predictable responses, and comprehensive error handling.
- RESTful JSON API
- Global edge-delivered responses
- Comprehensive documentation
- 99.9% uptime target
- MCP-compatible — use with Claude, ChatGPT, or Gemini
const response = await fetch(
'https://api.edgedns.dev/v1/dns/lookup?domain=example.com&type=MX',
{ headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
);
const { data } = await response.json();
console.log(data.records);
// [{ value: "mail.example.com", priority: 10, ttl: 3600 }]Related Endpoints
15 endpoints available for dns lookup
Real-World Use Cases
See how teams are using DNS Lookup in production
Email Deliverability Monitoring
Validate MX records and mail server configuration before sending campaigns.
Read more
Infrastructure Change Monitoring
Track DNS changes and propagation across your domains.
Read more
Multi-Cloud DNS Management
Monitor DNS consistency across hybrid cloud environments.
Read more
Put DNS Lookup to work — via API or AI
Start free with 200 requests/month. Call the API directly or connect your AI through MCP. Upgrade to Pro when you need private monitoring and higher limits.
No credit card required
Already have an account? Sign in