š°ļøDNS Lookup (Live)
Query live DNS records (A, AAAA, MX, TXT, NS, CNAME, SOA) through Cloudflare's DNS-over-HTTPS resolver. Domain validation, email deliverability pre-checks and infrastructure discovery.
Worked examples
A records for example.com
GET /api/v1/live/dns-lookup?domain=example.com&type=A
Result: 172.66.147.243 Ā· 104.20.23.154
MX records for gmail.com
GET /api/v1/live/dns-lookup?domain=gmail.com&type=MX
Result: 30 alt3.gmail-smtp-in.l.google.com. Ā· 40 alt4.gmail-smtp-in.l.google.com. Ā· 5 gmail-smtp-in.l.google.com. Ā· 20 alt2.gmail-smtp-in.l.google.com.
TXT records for google.com
GET /api/v1/live/dns-lookup?domain=google.com&type=TXT
Result: "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e" Ā· "google-site-verification=TV9-DBe4R80X4v0M4U_bd_J9cpOJM0nikft0jAgjmsQ" Ā· "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289" Ā· "google-site-verification=4ibFUgB-wXLQ_S7vsXVomSTVamuOXBiVAzpR5IZ87D0"
Machine API (x402)
$0.005 / callThis tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol ā no accounts, no API keys.
GET /api/v1/live/dns-lookup?domain=example.com&type=A HTTP/1.1
Host: localhost:3000
ā 402 (payment required, instructions in headers)
ā 200 (after X-PAYMENT header; JSON body below)
{
"tool": "live/dns-lookup",
"input": {"domain":"example.com","type":"A"},
"result": { "value": null, "answer": "104.20.23.154 Ā· 172.66.147.243" }
}Agent docs: /llms.txt Ā· OpenAPI spec Ā· integration guide
About this tool
Live DNS resolution through Cloudflare's 1.1.1.1 resolver over HTTPS. Look up address records, mail exchangers, TXT/SPF entries and nameservers ā the standard first step for domain validation and email deliverability checks.
Frequently asked questions
How do I check if a domain can receive email?
Query MX: no MX records (and no A/AAAA fallback) means the domain cannot receive mail.
Why DNS-over-HTTPS instead of a resolver library?
Serverless platforms don't expose UDP port 53. DoH gives identical data over HTTPS ā and Cloudflare's resolver is anycast, fast and free.