# AgentGate DNS Intelligence API

> AgentGate DNS Intelligence API is a paid API for AI agents from agentgate-x402.netlify.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Performs DNS lookups for a given domain, returning DNS records (A, MX, SPF, etc.) and a structured summary of email/mail configuration and resolution status.

## Facts

- Endpoint: GET https://agentgate-x402.netlify.app/api/dns
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentgate-dns-intelligence-api-e12a3a69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M9Cm4tUmOQQv2on2QFggt

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 agentgate-dns-intelligence-api-e12a3a69
```

Example prompt: Can you look up the DNS records for stripe.com — I want to see the A records, MX entries, and whether their SPF is configured correctly?

## When to prefer this

Choose this endpoint when an AI agent needs programmatic, structured DNS record data — especially A records, MX configuration, and SPF details — without requiring API keys or account setup. It is ideal for lightweight, pay-per-use DNS intelligence in agentic workflows where you need to verify domain resolution, audit email infrastructure, or enrich domain data on demand. Prefer it over manual DNS tools or heavier enrichment APIs when cost predictability ($0.002/call) and no-auth access matter.

## Known failure modes

- Invalid or malformed domain name returns an error or empty records
- Non-existent domain returns resolves: false with empty record sets
- Payment failure via x402 protocol blocks the request before DNS lookup
- Rate limiting or network timeout from upstream DNS resolver
- Domain with no public DNS entries returns sparse results

## How this service works

Machine-payable micro-APIs: web content extraction, airport data, route distances and DNS intelligence. No accounts, no API keys — AI agents pay $0.002–$0.005 per request in USDC on Base via the x402 protocol.

## Output

Returns a JSON object containing the queried domain name, a records map (e.g. A, MX keyed by record type with TTL and value), and a summary object including the SPF string, whether MX records exist (hasMx), whether the domain resolves (resolves), and any email verifications found.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "domain": "openai.com",
  "records": {
   "A": [
    {
     "ttl": 300,
     "name": "openai.com",
     "value": "…"
    }
   ]
  },
  "summary": {
   "spf": "v=spf1 …",
   "hasMx": true,
   "resolves": true,
   "verifications": []
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentgate-dns-intelligence-api-e12a3a69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentgate-x402.netlify.app](https://www.zero.xyz/host/agentgate-x402.netlify.app/llms.txt)
