# Multi-Type DNS Record Resolver (DoH)

> Multi-Type DNS Record Resolver (DoH) is a paid API for AI agents from vending-machine-seven.vercel.app, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-13).

Resolves multiple DNS record types (A, AAAA, MX, TXT, NS, CNAME) for a hostname in a single call using DNS-over-HTTPS

## Facts

- Endpoint: GET https://vending-machine-seven.vercel.app/api/v/dns-records
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/multi-type-dns-record-resolver-doh-d09e12a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pfQ-1-1rNTwH8c9jAwlsd

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 multi-type-dns-record-resolver-doh-d09e12a1
```

Example prompt: Can you pull all the DNS records for sendgrid.net — I need A, AAAA, MX, TXT, and NS records in one shot to audit their email deliverability setup?

## When to prefer this

Choose this endpoint when you need multiple DNS record types for a single domain in one API call rather than making separate lookups. Ideal for email deliverability audits (MX + TXT/SPF), security investigations, domain health checks, and brand protection workflows where you need A, AAAA, MX, TXT, NS, and/or CNAME records together. Prefer over the simpler A/AAAA-only sibling endpoint when you need record types beyond basic IP resolution.

## Known failure modes

- Hostname not found or NXDOMAIN — records object will be empty or indicate no such domain
- Invalid hostname format returns a 400-level error
- Requesting an unsupported record type returns an error or empty result for that type
- DoH upstream provider timeout or rate limit causes delayed or failed response
- Non-public or internal hostnames (e.g. localhost, .local) may return empty results

## How this service works

Resolve multiple DNS record types (A, AAAA, MX, TXT, NS, CNAME) in one call via DoH for deliverability and security agents

## Output

Returns a JSON object with 'ok' boolean, the queried hostname, the DNS source used, and a 'records' object keyed by record type (A, AAAA, MX, TXT, NS, CNAME) each containing the relevant DNS answers, plus a service identifier string.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "host"
     ],
     "properties": {
      "host": {
       "type": "string",
       "description": "Hostname e.g. example.com"
      },
      "types": {
       "type": "string",
       "description": "Comma list default A,AAAA,MX,TXT,NS"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "host": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "records": {
       "type": "object"
      },
      "service": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/multi-type-dns-record-resolver-doh-d09e12a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vending-machine-seven.vercel.app](https://www.zero.xyz/host/vending-machine-seven.vercel.app/llms.txt)
