# FastX402 DNS Lookup

> FastX402 DNS Lookup is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Performs a DNS lookup for a given domain name and returns structured DNS record data including answers, TTL, and status.

## Facts

- Endpoint: GET https://fastx402.tools/dns?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-dns-lookup-0541cda0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3gyLY6RjfQr5QlAJDaK6v

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastx402-dns-lookup-0541cda0
```

Example prompt: What are the MX records for gmail.com right now?

## When to prefer this

Choose this endpoint when you need a quick, no-account-required DNS record lookup payable per-call with USDC on Base. Ideal for agents that occasionally need DNS resolution without maintaining API key credentials, or when querying specific record types (MX, TXT, CNAME, AAAA, etc.) in an automated pipeline. Not suited for bulk DNS scanning or high-volume lookups where a dedicated DNS API subscription would be more cost-effective.

## Known failure modes

- Domain does not exist — returns NXDOMAIN status with empty answers array
- Invalid record type enum value — request rejected with validation error
- Network or resolver timeout — upstream DNS failure
- Malformed domain name input — query rejected
- Payment not fulfilled — x402 payment required error before processing

## How this service works

146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object with the queried domain name, record type, a status string (e.g. NOERROR), and an array of answer objects each containing the record name, type, TTL in seconds, and data value (e.g. IP address, mail server hostname, or text string).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Domain or host name"
      },
      "type": {
       "enum": [
        "A",
        "NS",
        "CNAME",
        "SOA",
        "PTR",
        "MX",
        "TXT",
        "AAAA",
        "SRV",
        "CAA"
       ],
       "type": "string",
       "description": "Record type, default A"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "status": {
       "type": "string"
      },
      "answers": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "ttl": {
          "type": "integer"
         },
         "data": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "type": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "example.com",
  "type": "MX",
  "status": "NOERROR",
  "answers": [
   {
    "ttl": 3600,
    "data": "0 .",
    "name": "example.com",
    "type": "MX"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-dns-lookup-0541cda0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
