# Delx Commerce DNS Lookup API

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

Performs a DNS lookup for a given domain, returning DNS records of a specified type (A, AAAA, CNAME, MX, NS, TXT) with TTL and answer data.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/dns-lookup?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-dns-lookup-api-ed98c7fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C84qFd_bB_0pSN-4Jdrfb

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-lookup-api-ed98c7fa -d '<json body>'
```

Example prompt: Can you look up the A records for example.com with a 5-second timeout?

## When to prefer this

Choose this endpoint when an AI agent needs a simple, pay-per-use DNS resolution with no signup or API key management, especially in agentic workflows requiring on-demand infrastructure checks, domain validation, or email deliverability verification. It is ideal for lightweight, single-record-type queries where verifiable, metered delivery via USDC on Base or Solana is acceptable.

## Known failure modes

- Domain does not exist or NXDOMAIN — returns empty answers array
- Timeout exceeded — if DNS resolution takes longer than the specified timeout value
- Invalid record type — request rejected if record_type is not one of A, AAAA, CNAME, MX, NS, TXT
- Malformed domain input — error if domain string is invalid
- Payment failure — x402 payment not accepted, call blocked
- Network or upstream resolver error — transient failure with error response

## 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 queried domain, the requested record type, the total number of answers, and an array of DNS answer records each containing the record name, type, data (e.g. IP address or hostname), and TTL in seconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "domain": {
   "type": "string"
  },
  "timeout": {
   "type": "integer",
   "maximum": 15,
   "minimum": 1,
   "description": "Per-network-phase cap; the whole tool shares a 8-second active budget including resolution and fallbacks. Not an end-to-end latency SLA."
  },
  "record_type": {
   "enum": [
    "A",
    "AAAA",
    "CNAME",
    "MX",
    "NS",
    "TXT"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "domain": "example.com",
   "answers": [
    {
     "ttl": 300,
     "data": "93.184.216.34",
     "name": "example.com.",
     "type": "A"
    }
   ],
   "record_type": "A",
   "answer_count": 1
  },
  "tool_name": "util_dns_lookup"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-dns-lookup-api-ed98c7fa/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)
