# PennyRail DNS A Record Lookup

> PennyRail DNS A Record Lookup is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Resolves a domain name to its IPv4 address(es) via a paid DNS A-record lookup API

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/network/dns.a--domain-ip-address
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-dns-a-record-lookup-5957bbd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-t2CVJxtnKoAvgIT9vk2j

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 pennyrail-dns-a-record-lookup-5957bbd0 -d '<json body>'
```

Example prompt: What IP address does example.com resolve to? Use the PennyRail DNS lookup to get the A record.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use DNS A record resolution without setting up your own DNS resolver infrastructure. It's well-suited for low-volume, on-demand hostname-to-IP lookups inside agent workflows that already support x402 micropayments. Prefer dedicated DNS APIs (e.g. Google DNS-over-HTTPS or Cloudflare) for high-volume or free-tier needs.

## Known failure modes

- Domain does not exist or has no A record — returns error or empty result
- Invalid input format (e.g. not a valid domain string) — likely a 400 or error JSON
- DNS resolution timeout — upstream DNS failure
- Payment failure via x402 protocol — 402 response if funds insufficient
- Vercel cold-start latency may cause occasional slow responses

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the resolved IPv4 address or addresses associated with the queried domain's DNS A record. The response format is open-ended but expected to include the IP address(es) mapped to the input domain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-dns-a-record-lookup-5957bbd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
