# DNS Lookup via DNS-over-HTTPS

> DNS Lookup via DNS-over-HTTPS is a paid API for AI agents from mcpfax-utility.bowling-anthony.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Resolves DNS records for a given hostname using DNS-over-HTTPS, returning structured record data.

## Facts

- Endpoint: GET https://mcpfax-utility.bowling-anthony.workers.dev/v1/dns
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-lookup-via-dns-over-https-7dc0146d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hPnFzLXHa3XJixd7DFY2S

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 dns-lookup-via-dns-over-https-7dc0146d
```

Example prompt: Can you look up the A and MX records for github.com using DNS-over-HTTPS?

## When to prefer this

Use this endpoint when you need to programmatically resolve DNS records without relying on a local system resolver, especially in agent workflows where DNS-over-HTTPS provides privacy, consistency, and structured JSON output. Prefer this over system-level nslookup or dig when operating in a serverless or sandboxed environment.

## Known failure modes

- Non-existent domain returns NXDOMAIN or empty record set
- Invalid hostname format causes a validation error
- Unsupported record type returns an error or empty result
- Upstream DNS-over-HTTPS provider timeout causes a failure response
- Private/reserved hostnames may not resolve

## How this service works

DNS lookup — Resolve DNS records via DNS-over-HTTPS.

## Output

Returns structured DNS record data including record type (A, AAAA, MX, CNAME, TXT, NS, etc.), record values, and TTL (time-to-live) for the queried hostname.

## 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"
    }
   },
   "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/dns-lookup-via-dns-over-https-7dc0146d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcpfax-utility.bowling-anthony.workers.dev](https://www.zero.xyz/host/mcpfax-utility.bowling-anthony.workers.dev/llms.txt)
