# Swift Bot Labs DNS Lookup

> Swift Bot Labs DNS Lookup is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Performs a DNS record lookup for a given domain name and record type, returning parsed answers with DNSSEC validation status

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/dns/lookup?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-dns-lookup-546b24eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PhkedZeeN_9uO3hsyvdat

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 swift-bot-labs-dns-lookup-546b24eb
```

Example prompt: Can you look up the MX records for example.com and tell me if DNSSEC is validated?

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call DNS lookup without setting up an account or managing API keys. It is ideal for agents that only occasionally need DNS data, want DNSSEC validation status alongside records, and are already operating in an x402 micropayment context. Prefer alternatives (e.g. Google DNS-over-HTTPS or Cloudflare's 1.1.1.1 API) if you need free, high-volume, or unauthenticated access.

## Known failure modes

- Domain does not exist — returns NXDOMAIN status with empty answers array
- Requested record type not found — returns NOERROR with empty answers
- Invalid domain name format — likely returns a 400 or error response
- DNSSEC validation failure — dnssecValidated set to false
- Payment not received or x402 handshake fails — 402 response before DNS query is executed
- Network timeout reaching upstream DNS resolver — may return error or timeout response

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with the domain name, record type, DNS response status (e.g. NOERROR, NXDOMAIN), an array of answer records each containing name, type, TTL, and data, plus a boolean indicating whether DNSSEC was validated.

## 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",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Domain name (IDN allowed), e.g. example.com"
      },
      "type": {
       "enum": [
        "A",
        "NS",
        "CNAME",
        "SOA",
        "PTR",
        "MX",
        "TXT",
        "AAAA",
        "SRV",
        "NAPTR",
        "DS",
        "DNSKEY",
        "HTTPS",
        "SVCB",
        "CAA",
        "TLSA"
       ],
       "type": "string",
       "description": "Record type"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "dns-lookup",
  "result": {
   "name": "example.com",
   "type": "MX",
   "status": "NOERROR",
   "answers": [
    {
     "ttl": 3600,
     "data": "0 .",
     "name": "example.com",
     "type": "MX"
    }
   ],
   "dnssecValidated": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-dns-lookup-546b24eb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
