x402AgentTools

🛰️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. ¡ 20 alt2.gmail-smtp-in.l.google.com. ¡ 10 alt1.gmail-smtp-in.l.google.com.

TXT records for google.com

GET /api/v1/live/dns-lookup?domain=google.com&type=TXT

Result: "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8=" ¡ "apple-domain-verification=30afIBcvSuDV2PLX" ¡ "_r4rd1pvwyrpi7sw4a3hzmw8e51yh9td" ¡ "google-site-verification=wD8N7i1JTNTkezJ49swvWW48f8_9xveREV4oB-0Hf5o"

Machine API (x402)

$0.002 / call

This 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: agenttools-hub.vercel.app

→ 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": "172.66.147.243 ¡ 104.20.23.154" }
}

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.

Related tools