# Delx Commerce DNS SRV Record Parser

> Delx Commerce DNS SRV Record Parser 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).

Parses a raw DNS SRV record string and returns its structured fields: priority, weight, port, and target hostname.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/dns-srv-record-parse?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-srv-record-parser-4071adb7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bO8QOTe7y1gFXmbokR9o_

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-srv-record-parser-4071adb7 -d '<json body>'
```

Example prompt: Can you parse this DNS SRV record and give me the priority, weight, port, and target as structured fields: '10 5 443 service.example.com'?

## When to prefer this

Choose this endpoint when you need to programmatically decompose a raw DNS SRV record string into its structured fields (priority, weight, port, target) without setting up any account or subscription. It is ideal for agents, automations, and infrastructure pipelines that process DNS data on-demand. The pay-per-call model ($0.001 USDC) with no signup makes it suitable for sporadic or low-volume parsing tasks. The verifiable evidence block (input SHA-256, no external calls, no retention) makes it preferable when auditability or privacy matters.

## Known failure modes

- Malformed or unparseable SRV record returns a non-pass status
- Input exceeding 8192 characters is rejected
- Empty or missing 'record' field causes a validation error
- Non-SRV record strings (e.g. A or MX records) may fail parsing or return incorrect fields

## 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 four structured fields extracted from the SRV record: priority (integer), weight (integer), port (integer), and target (string hostname). Also includes schema version, operation name, status ('pass'), and an evidence block confirming no external calls were made and the input was not retained (with input SHA-256 hash for verification).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "record": {
   "type": "string",
   "maxLength": 8192,
   "description": "Record supplied to DNS SRV Record Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "port": 443,
   "target": "service.example.com",
   "weight": 5,
   "priority": 10
  },
  "schema": "delx/util-dns-srv-record-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "2bf42975dbde8153fcd9418bd87eac1cf8444a79271b983e8dd747fea6a78243",
   "external_calls": 0
  },
  "operation": "web_reliability:dns_srv_record_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-dns-srv-record-parser-4071adb7/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)
