# Swift Bot Labs DNS Reverse Lookup

> Swift Bot Labs DNS Reverse 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 reverse DNS lookup for an IPv4 or IPv6 address, returning PTR hostname(s) and forward-confirmation status

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/dns/reverse?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-reverse-lookup-8fa4c7a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s9T4qYZTI_dNfTUteDyrI

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-reverse-lookup-8fa4c7a5
```

Example prompt: What hostname does reverse DNS give for the IP 8.8.8.8, and is it forward-confirmed?

## When to prefer this

Use this endpoint when you need a pay-per-call, no-account reverse DNS lookup that also validates forward confirmation. Ideal for one-off enrichment of IP addresses in logs, email headers, or network security contexts where you don't want to manage DNS client libraries or API keys.

## Known failure modes

- IP with no PTR record returns empty hostnames array and forwardConfirmed: false
- Malformed or non-IP input may return a 400 error
- Payment failure via x402 returns a 402 Payment Required before any lookup is performed
- Temporary DNS resolution failures may return an error or empty result

## 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

A JSON object containing the input IP, its PTR record name (e.g. '8.8.8.8.in-addr.arpa'), an array of resolved hostnames (e.g. ['dns.google']), and a boolean forwardConfirmed indicating whether the hostname resolves back to the original IP.

## 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": [
      "ip"
     ],
     "properties": {
      "ip": {
       "type": "string",
       "description": "IPv4 or IPv6 address"
      }
     },
     "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-reverse",
  "result": {
   "ip": "8.8.8.8",
   "ptrName": "8.8.8.8.in-addr.arpa",
   "hostnames": [
    "dns.google"
   ],
   "forwardConfirmed": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-dns-reverse-lookup-8fa4c7a5/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)
