Resolve public DNS records (A, AAAA, MX, TXT, CNAME, NS, SOA) for a domain
Resolve public DNS records (A, AAAA, MX, TXT, CNAME, NS, SOA) for a domain. Use when you need live DNS data and must not guess from memory or training data.
5000 (raw units)
price
2
calls / 30d
2
unique payers
2026-08-24
updated
Provider
api.fetchx402.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x33236133BecE789D551d0B5c4f9A50095d4b57d3",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"iconUrl": "https://api.fetchx402.com/favicon.ico",
"input": {
"method": "GET",
"queryParams": {
"domain": "example.com",
"type": "A"
},
"type": "http"
},
"output": {
"example": {
"domain": "example.com",
"rcode": "NOERROR",
"records": [
{
"address": "104.20.23.154"
}
],
"resolver": "1.1.1.1",
"ttl": 20,
"type": "A"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"headers": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"properties": {
"domain": {
"description": "Public fully-qualified domain name to resolve, such as example.com. IPs, localhost, and internal/mDNS names are rejected.",
"type": "string"
},
"type": {
"description": "DNS record type. A = IPv4 addresses, AAAA = IPv6, MX = mail exchangers, TXT = text (SPF/DKIM), CNAME = alias, NS = nameservers, SOA = start of authority. Defaults to A if omitted.",
"enum": [
"A",
"AAAA",
"MX",
"TXT",
"CNAME",
"NS",
"SOA"
],
"type": "string"
}
},
"required": [
"domain"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.fetchx402.com/v1/tools/dns" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.fetchx402.com/v1/tools/dns");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.fetchx402.com/v1/tools/dns")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4857.json, and this resource appears in /discovery/resources and /discovery/search.