Resolve any DNS record type for a host
agent402.tools/api/dns-lookup
Resolve any DNS record type for a host: A, AAAA, MX, TXT, CNAME, NS, SOA, CAA, SRV, PTR. Returns the records plus a count. Built on Node's native resolver - no external API.
POST
https://agent402.tools/api/dns-lookupUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/dns-lookup", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"host":"google.com","type":"MX"}),
});
console.log(await res.json());Example input
{
"host": "google.com",
"type": "MX"
}Price changes
- Nov 25, 20260.001 → 0.002
- Nov 25, 20260.002 → 0.001
More from DNS lookupProvider status
- agent-data-tools.revmesh2074.workers.dev/dns/recordsDNS lookup of a domain: A, AAAA, MX, TXT, CNAME, NS, CAA, SOA and other records through Cloudflare DNS over HTTPS, with TTLs, the response code and DNSSEC validation. Use to check where a domain points, its mail servers or a TXT verification record.0.002
- agent402.tools/api/dnsLive DNS lookup for a domain: returns name, type and records[]. Supported record types: A, AAAA (addresses as strings), MX ({exchange, priority} objects), TXT (each record an array of its strings), NS and CNAME (hostnames). For SPF, DMARC or a full mail-security read use spf-check, dmarc-check or email-deliverability.0.001
- aizamon.com/x402/v1/dnsGet A, AAAA, MX, TXT, NS, and CNAME for one public hostname in ?q=. A URL is reduced to its hostname before the lookup. $0.01 USDC. Included in the hour pass. Includes a signed Ed25519 receipt you can check with the published key.0.01
- api.gadgethumans.com/dns-lookupDNS lookup for a domain: A, AAAA, MX, TXT, NS and CNAME records, for deliverability and domain checks.0.01
- api.vextorium.com/v1/dns-lookupDNS records of a domain with TTL: A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV, HTTPS. Choose the types or get the common ones at once.0.0023
- relay402.georgespring.workers.dev/api/web-dns-lookupDNS-over-HTTPS lookup for common record types, normalized into a risk report for web and email agents.0.003
