Tools / Data

Domain and DNS lookup

Returns A, AAAA, CNAME, MX, NS, TXT and CAA records, SPF and DMARC policies, and registration data from RDAP (registrar, created, expires, status, nameservers).

Price per call
$0.002 USDC
Endpoint
GET https://x402-tools.com/v1/dns
Also accepts
POST with a JSON body
Payment
x402, exact scheme, USDC on Base
Returns
application/json

Parameters

NameTypeDescription
domain requiredstringDomain name, e.g. example.com.

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);

const res = await paidFetch("https://x402-tools.com/v1/dns?domain=example.com");
// costs $0.002 in USDC on Base

Without a payment the endpoint answers 402 with the price, so you can inspect it first:

curl -i "https://x402-tools.com/v1/dns?domain=example.com"

Example response

{
  "domain": "example.com",
  "resolves": true,
  "records": {
    "A": [
      "93.184.215.14"
    ],
    "MX": [
      "0 ."
    ],
    "NS": [
      "a.iana-servers.net."
    ]
  },
  "email": {
    "accepts_mail": false,
    "spf": "v=spf1 -all",
    "dmarc": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s"
  },
  "registration": {
    "registrar": "RESERVED-Internet Assigned Numbers Authority",
    "created": "1995-08-14T04:00:00Z",
    "expires": "2026-08-13T04:00:00Z"
  }
}

If the tool fails or your input is invalid, the payment is not settled.

Other tools