# Otto AI DNS Lookup

> Otto AI DNS Lookup is a paid API for AI agents from x402.ottoai.services, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Resolves DNS records for a domain, returning A, MX, NS, TXT, CNAME, AAAA, SOA records plus email security analysis (SPF, DKIM, DMARC).

## Facts

- Endpoint: GET https://x402.ottoai.services/dns-lookup
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/otto-ai-dns-lookup-9efccd7a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EJ2vtxLsL0dY4gMzuhagA

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 otto-ai-dns-lookup-9efccd7a
```

Example prompt: Can you look up all the DNS records for stripe.com — I want to see the A records, MX servers, nameservers, and whether their SPF, DKIM, and DMARC email security is properly configured?

## When to prefer this

Choose this endpoint when you need a comprehensive, single-call DNS lookup that also includes email security posture (SPF/DKIM/DMARC) rather than just raw record data. Ideal for agents performing domain reconnaissance, email infrastructure validation, or security audits. Priced at $0.001 USDC per call via x402, making it cost-effective for high-frequency lookups.

## Known failure modes

- Domain does not exist or fails to resolve — resolves: false in response
- Invalid domain format supplied — likely a 4xx or validation error
- Network/upstream DNS resolver failure — may return degraded:true in meta
- Rate limit or payment failure — 402 payment required or 429 response
- Timeout on slow-resolving domains

## How this service works

Resolve any domain in one call: A/AAAA, MX, NS, CNAME, SOA and TXT records, plus parsed email-auth posture — SPF policy, DMARC policy, and detected DKIM selectors. A drop-in nslookup/dig replacement for agents, resolved over DNS-over-HTTPS (DoH) with redundant resolvers and automatic failover. Keyless, pay-per-call, structured JSON.

## Output

Returns a structured JSON object with the domain's resolution status, A/AAAA/MX/NS/TXT/CNAME/SOA records, and an email security breakdown including SPF policy and record, DKIM selectors found, and DMARC policy and record. Also includes metadata with freshness timestamp and staleness info.

## 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 resolve (e.g. github.com, stripe.com). Subdomains allowed."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "status"
     ],
     "properties": {
      "data": {},
      "meta": {
       "type": "object"
      },
      "reason": {
       "type": "string",
       "description": "status=unavailable only; every >=400 is UNCHARGED"
      },
      "status": {
       "enum": [
        "success",
        "unavailable"
       ],
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "email": {
    "spf": {
     "policy": "softfail",
     "record": "v=spf1 include:_spf.google.com ~all",
     "present": true
    },
    "dkim": {
     "selectorsFound": [
      "google"
     ]
    },
    "dmarc": {
     "policy": "reject",
     "record": "v=DMARC1; p=reject; rua=mailto:dmarc@github.com",
     "present": true
    }
   },
   "domain": "github.com",
   "records": {
    "a": [
     "140.82.121.3"
    ],
    "mx": [
     {
      "exchange": "aspmx.l.google.com",
      "priority": 1
     }
    ],
    "ns": [
     "dns1.p08.nsone.net",
     "ns-1283.awsdns-32.org"
    ],
    "soa": "dns1.p08.nsone.net. hostmaster.nsone.net. 1 7200 900 1209600 3600",
    "txt": [
     "v=spf1 ip4:192.30.252.0/22 include:_spf.google.com ~all"
    ],
    "aaaa": [],
    "cname": []
   },
   "resolves": true,
   "generatedAt": "2026-06-24T12:00:00.000Z"
  },
  "meta": {
   "degraded": false,
   "validUntil": "",
   "generatedAt": "",
   "stalenessSec": 0
  },
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/otto-ai-dns-lookup-9efccd7a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.ottoai.services](https://www.zero.xyz/host/x402.ottoai.services/llms.txt)
