# Delx Commerce DNS CNAME Chain Check

> Delx Commerce DNS CNAME Chain Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Resolves and validates the full CNAME chain for one or more DNS hostnames, reporting hop count, loop detection, and chain members up to a configurable max-hop budget.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/dns-cname-chain-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-dns-cname-chain-check-e75b9519
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x1ow6l7lxEqLcPadOW7O2

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 delx-commerce-dns-cname-chain-check-e75b9519 -d '<json body>'
```

Example prompt: Can you trace the full CNAME chain for www.example.com and tell me how many hops it takes, whether it loops, and whether it stays within 5 hops?

## When to prefer this

Use this endpoint when you need programmatic, pay-per-call DNS CNAME chain resolution without signup — especially when validating CDN configurations, diagnosing redirect loops, or auditing multi-hop DNS setups. Prefer it over manual dig/nslookup when you need structured JSON output, loop detection, and hop-budget enforcement in an automated agent workflow. It is ideal for site reliability checks and pre-deployment DNS validation.

## Known failure modes

- Invalid or non-existent hostname returns an empty or truncated chain
- CNAME loop detected returns loop:true and within_budget:false
- Exceeding max_hops budget returns within_budget:false
- Malformed input (non-string items, oversized array) returns a validation error
- Payment failure via x402 prevents execution entirely
- Network DNS resolution timeout may cause incomplete chain results

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with the full ordered list of CNAME names in the chain, total hop count, a boolean indicating whether a loop was detected, and whether the chain resolved within the specified max-hop budget. Also includes evidence metadata: whether input was retained (always false), the SHA-256 hash of the input, and external call count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "names": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Names supplied to DNS Cname Chain Check; used only for this bounded calculation and processed in memory without retention."
  },
  "max_hops": {
   "type": "integer",
   "description": "Max Hops supplied to DNS Cname Chain Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "hops": 2,
   "loop": false,
   "names": [
    "www.example.com",
    "edge.example.net",
    "origin.example.net"
   ],
   "within_budget": true
  },
  "schema": "delx/util-dns-cname-chain-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "5413dc5bf3dab733024514776f9526adadb0c9c3253d4fd4df6f85ea895c49ef",
   "external_calls": 0
  },
  "operation": "web_reliability:dns_cname_chain_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-dns-cname-chain-check-e75b9519/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
