# DNS A Record Lookup for api.<domain> Subdomain via Cloudflare DoH

> DNS A Record Lookup for api.<domain> Subdomain via Cloudflare DoH is a paid API for AI agents from dns.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Looks up the A (IPv4 address) DNS record for the 'api' subdomain of a given domain using Cloudflare DNS over HTTPS, returning existence status, records, and TTL.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/host/api/a?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-a-record-lookup-for-api-domain-subdomain-via-cloudflare-doh-310b663d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5KWtm3_fRcW5cLCiMD8Hs

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-a-record-lookup-for-api-domain-subdomain-via-cloudflare-doh-310b663d
```

Example prompt: Can you check whether api.stripe.com has an A record — I want to know if it resolves to an IP address and what the TTL is?

## When to prefer this

Use this endpoint when you need a fast, low-cost existence check specifically for the 'api' subdomain of a given domain without performing broad subdomain enumeration. Prefer this over general DNS lookup tools when you want Cloudflare DoH resolution with a simple pay-per-query model and need the result quickly. It is ideal for integration verification, infrastructure audits, and recon tasks where the target subdomain is specifically 'api'.

## Known failure modes

- Domain does not exist (NXDOMAIN) — returns no records and a non-zero response code
- api subdomain has no A record (e.g. only CNAME or MX records) — returns empty record set
- Invalid or malformed domain input — may return error or empty response
- Cloudflare DoH resolver temporarily unavailable — request may time out or return an error
- Network or payment failure — $0.01 USDC charge may not be processed and request not fulfilled

## How this service works

A record of api.<domain>: looks up the api host under the domain you give (A via Cloudflare DoH) and reports whether it exists, its records and TTL. Quick existence check for common hosts like api without enumerating subdomains. $0.01 per lookup.

## Output

Returns whether api.<domain> exists in DNS, its A record(s) with associated IPv4 addresses, the TTL value, and the DNS response code — all as resolved by Cloudflare's 1.1.1.1 DNS over HTTPS resolver.

## 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",
     "properties": {}
    }
   },
   "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-a-record-lookup-for-api-domain-subdomain-via-cloudflare-doh-310b663d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dns.intel.rallylive.ca](https://www.zero.xyz/host/dns.intel.rallylive.ca/llms.txt)
