# toolvend.dev DNS Lookup (DoH)

> toolvend.dev DNS Lookup (DoH) is a paid API for AI agents from toolvend.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Resolves DNS records for any domain name via DNS-over-HTTPS, returning structured JSON for common record types (A, AAAA, MX, TXT, NS, CAA, and more).

## Facts

- Endpoint: GET https://toolvend.dev/dns
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolvend-dev-dns-lookup-doh-93def1a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SCSB927awyUf2xQrnk4pi

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 toolvend-dev-dns-lookup-doh-93def1a2
```

Example prompt: Can you look up the MX records for gmail.com so I can see which mail servers handle their email?

## When to prefer this

Use this endpoint when you need a fast, structured JSON response for DNS lookups without parsing raw DNS wire format or dealing with plain-text WHOIS/dig output. Prefer it over RDAP (which gives registrar/registration data) when you need live DNS resolution. Ideal for agents that need to programmatically check mail servers, IP addresses, SPF/DKIM records, DNSSEC chains, or nameservers as part of an automated workflow.

## Known failure modes

- Domain does not exist (NXDOMAIN) — returns empty or error response
- Invalid domain name format — rejected by schema validation (minLength/maxLength)
- Unsupported record type — only the enumerated types (A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA, DS, DNSKEY, TLSA, HTTPS) are accepted
- DNS resolution timeout — upstream resolver may be slow or unreachable
- Payment failure — x402 payment of $0.005 USDC not processed correctly

## How this service works

DNS lookup over DoH. Common record types (A, AAAA, MX, TXT, NS, CAA, ...) as clean JSON.

## Output

A clean JSON object containing the resolved DNS records for the queried domain and record type, including record values (e.g. IP addresses, hostnames, priority values, TTLs) structured by record type.

## 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": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "maxLength": 253,
       "minLength": 1,
       "description": "DNS name to resolve"
      },
      "type": {
       "enum": [
        "A",
        "AAAA",
        "CNAME",
        "MX",
        "NS",
        "TXT",
        "SOA",
        "SRV",
        "CAA",
        "DS",
        "DNSKEY",
        "TLSA",
        "HTTPS"
       ],
       "type": "string",
       "description": "Record type, default A"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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