# ForgeMesh DNS Resolver

> ForgeMesh DNS Resolver is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-16).

Resolves any DNS record type (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, SRV) for a given hostname and returns the full validated answer section as structured JSON.

## Facts

- Endpoint: POST https://x402.forgemesh.io/resolve-dns
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-dns-resolver-0f154177
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2m_6EJX8G7Ddso7b3zc6w

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 forgemesh-dns-resolver-0f154177 -d '<json body>'
```

Example prompt: Can you look up the MX records for sendgrid.com so I can verify its email deliverability configuration?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically resolve DNS records for any hostname and record type, get structured JSON output with full answer-section details (name, type, TTL, data), and supports infrastructure checks, email deliverability verification (MX/SPF/DMARC), SSL CAA validation, or domain ownership verification. Prefer this over manual dig/nslookup commands or generic HTTP-based DNS resolvers when you need a simple paid API with no credential management.

## Known failure modes

- Hostname does not exist (NXDOMAIN) — returns empty answer or error indicating the domain was not found
- Invalid record type specified — returns error or falls back to default A record
- Network or upstream resolver timeout — returns error with timeout indication
- Malformed hostname input — returns validation error
- Domain exists but has no records of the requested type — returns empty answer section

## How this service works

DNS resolver API: query any record type (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, SRV) for any hostname and get the full validated answer section — name, type, TTL, data — as JSON. For infrastructure checks, email deliverability, and domain verification agents.

## Output

A JSON object containing the validated DNS answer section for the queried hostname, including each record's name, type, TTL, and data value(s) — covering all queried record types such as A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, or SRV.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "description": "Hostname to resolve, e.g. example.com"
  },
  "type": {
   "type": "string",
   "description": "Record type, default A"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "Answer": [
    {
     "TTL": 3600,
     "data": "0 .",
     "name": "example.com",
     "type": 15
    }
   ],
   "Status": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-dns-resolver-0f154177/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
