# DNS Record Lookup by x402tools

> DNS Record Lookup by x402tools is a paid API for AI agents from dns.x402tools.xyz, paid per call via x402, $0.002/call, status down (last checked 2026-09-15).

Performs DNS record lookups for any domain, returning A, AAAA, MX, NS, TXT, CNAME, and SOA records

## Facts

- Endpoint: GET https://dns.x402tools.xyz/v1/lookup
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-x402tools-xyz-19c64c2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_70anJmmdcLcYXNxXsJHQ8

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 dns-x402tools-xyz-19c64c2f
```

Example prompt: Can you look up all the DNS records for github.com — I need to see the A, MX, NS, and TXT records?

## When to prefer this

Use this endpoint when an agent needs to programmatically inspect DNS infrastructure for any domain — verifying email server configuration, resolving IP addresses, checking nameservers, or validating SPF/DKIM TXT records. It covers all major DNS record types in a single call, making it efficient for comprehensive DNS audits. Prefer this over manual dig/nslookup when operating in an automated or agentic workflow.

## Known failure modes

- Invalid or malformed domain name returns an error response
- Non-existent domain (NXDOMAIN) may return empty record arrays
- Network timeout if upstream DNS resolver is unreachable
- Missing required 'domain' query parameter returns a 400-style error
- Payment failure (402) if USDC balance is insufficient

## How this service works

Look up DNS records for any domain — A, AAAA, MX, NS, TXT, CNAME, SOA. Use for domain diagnostics, mail server lookup, DNS resolution, and domain verification.

## Output

Returns a structured object containing the domain name plus arrays of records by type: A (IPv4 addresses), AAAA (IPv6 addresses), MX (mail exchange), NS (nameservers), TXT (text records), CNAME (canonical name), and a SOA (start of authority) object.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "domain": "example.com"
  }
 }
}
```

## 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": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Domain name to look up"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "a": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "mx": {
       "type": "array"
      },
      "ns": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "soa": {
       "type": "object"
      },
      "txt": {
       "type": "array"
      },
      "aaaa": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "domain": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "a": [
   "93.184.216.34"
  ],
  "mx": [
   {
    "exchange": "mail.example.com",
    "priority": 10
   }
  ],
  "ns": [
   "a.iana-servers.net",
   "b.iana-servers.net"
  ],
  "domain": "example.com"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-x402tools-xyz-19c64c2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dns.x402tools.xyz](https://www.zero.xyz/host/dns.x402tools.xyz/llms.txt)
