# SableForge DNS Lookup API

> SableForge DNS Lookup API is a paid API for AI agents from sableforge.servehttp.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Performs DNS record lookups for a given hostname and record type, returning resolved answers via a pay-per-call HTTP endpoint settled in USDC on Base.

## Facts

- Endpoint: GET https://sableforge.servehttp.com/api/dns?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sableforge-dns-lookup-api-a93f37b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IcDEXnDVyuJH7ynAeJFO5

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 sableforge-dns-lookup-api-a93f37b1
```

Example prompt: Can you look up the A record for github.com and tell me what IP addresses it resolves to?

## When to prefer this

Choose this endpoint when you need a quick, no-account DNS resolution call and are already operating in an x402 micropayment environment with USDC on Base. Ideal for agents that need ad-hoc DNS lookups without managing API keys or subscriptions. Prefer over full DNS provider SDKs when simplicity and pay-per-call economics matter more than bulk throughput or advanced DNS management features.

## Known failure modes

- Non-existent domain returns status != 0 and empty answers array
- Invalid record type may result in an error response
- Network or upstream DNS resolver timeouts may cause failed lookups
- Malformed hostname input may return a 400-level error
- Payment failure (insufficient USDC balance) returns 402 before the lookup is executed

## How this service works

12 pay-per-call HTTP APIs settled in USDC on Base via x402 v2. No API keys, no accounts, no signup — $0.0005–$0.0020 per call. Includes a locally hosted 27B LLM endpoint.

## Output

Returns a JSON object containing the queried hostname, the record type requested, a status code (0 = success), and an array of DNS answer strings (e.g. IP addresses for A records, hostnames for CNAME/MX records).

## 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",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "host": {
       "type": "string"
      },
      "type": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "example.com",
  "type": "A",
  "status": 0,
  "answers": [
   "93.184.215.14"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sableforge-dns-lookup-api-a93f37b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sableforge.servehttp.com](https://www.zero.xyz/host/sableforge.servehttp.com/llms.txt)
