# fittings DNS Lookup (DoH)

> fittings DNS Lookup (DoH) is a paid API for AI agents from fittings.sh, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-11).

Resolve DNS records of any common type (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA, SRV, PTR) over DNS-over-HTTPS, returning answers with TTLs and DNSSEC authentication status.

## Facts

- Endpoint: GET https://fittings.sh/v1/net/dns-lookup?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-dns-lookup-doh-5eb00d12
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aC9DLofOIb_AhNcF96TJH

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 fittings-dns-lookup-doh-5eb00d12
```

Example prompt: Can you look up the MX records for example.com using DNS-over-HTTPS and tell me the TTLs and whether the answers are DNSSEC-authenticated?

## When to prefer this

Choose this endpoint when you need authoritative, DNSSEC-aware DNS resolution over HTTPS without running your own resolver — especially useful for agents verifying email deliverability (SPF/DKIM/DMARC TXT records), auditing domain security posture (CAA, DNSSEC), or programmatically discovering infrastructure (A, AAAA, NS, SRV records) in a serverless or restricted environment.

## Known failure modes

- Hostname does not exist (NXDOMAIN) — returns an empty or error response
- Unsupported or misspelled record type — validation error
- DNS resolution timeout or upstream DoH server unavailable
- DNSSEC validation failure for a domain with broken DNSSEC configuration
- Rate limiting or payment failure for the x402 micropayment

## How this service works

Resolve DNS records of any common type over DoH, returning answers with TTLs and the DNSSEC-authenticated flag.

## Output

A structured list of DNS answer records for the queried hostname and type, each with the record data (e.g. IP address, mail server, text value), its TTL in seconds, and a boolean flag indicating whether the response was DNSSEC-authenticated.

## 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": [
      "hostname"
     ],
     "properties": {
      "type": {
       "type": "string",
       "description": "A | AAAA | MX | TXT | NS | CNAME | SOA | CAA | SRV | PTR"
      },
      "hostname": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-dns-lookup-doh-5eb00d12/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
