DNS records lookup: A, AAAA, MX, TXT, CNAME, NS and more

$0.01 per call · failed calls are never charged · no account or API key needed

Look up DNS records of a domain over DNS-over-HTTPS (Cloudflare 1.1.1.1): A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV, PTR, DS, DNSKEY or HTTPS, with each answer's TTL, the response code (NOERROR, NXDOMAIN…) and whether DNSSEC validated. Use to check email (MX, SPF in TXT), verify a domain, or debug a DNS change; for whether the change has spread use dns_propagation.

Run it free (25 free calls) Buy credits by card (from $5) Example result (JSON)

Try it with your own inputs

Domain name (or a URL; its host is used)

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
name (required)stringDomain name (or a URL; its host is used)
typestringRecord type: A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV, PTR, DS, DNSKEY, HTTPS (default A)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/dns/lookup?name=example.com"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/dns/lookup?name=example.com&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "name": "example.com",
  "type": "MX",
  "status": "NOERROR",
  "dnssec": true,
  "answers": [
    {
      "data": "0 .",
      "ttl": 86400
    }
  ],
  "resolver": "Cloudflare"
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is dns_lookup, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools