# Matrix TCP SRV Record Lookup

> Matrix TCP SRV Record Lookup 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-20).

Resolves _matrix._tcp SRV DNS records for a domain to discover where its Matrix homeserver lives (priority, weight, port, target host).

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/srv/matrix-tcp?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/matrix-tcp-srv-record-lookup-dc30e236
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ojDH4dqS-JwrzveMPSbza

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 matrix-tcp-srv-record-lookup-dc30e236
```

Example prompt: Look up the Matrix SRV record for matrix.org so I can find out which host and port its homeserver is running on for federation.

## When to prefer this

Use this endpoint when you need to discover a Matrix homeserver's actual host and port for a given domain via the standard SRV record mechanism, especially for federation or client configuration. Prefer this over guessing default ports or using A/AAAA records directly, as SRV records carry authoritative priority, weight, and port data.

## Known failure modes

- Domain has no _matrix._tcp SRV record — returns empty or NXDOMAIN response
- Domain does not exist — DNS resolution fails entirely
- Cloudflare DoH is temporarily unavailable — request times out
- Malformed domain input — query rejected or returns error
- Payment of $0.01 USDC not fulfilled — request blocked by x402 paywall

## How this service works

MATRIX service discovery (_matrix._tcp.<domain>): SRV records with priority, weight, port and target host, from Cloudflare DoH. Tells a client where the domain's matrix service lives without guessing hosts. $0.01 per lookup.

## Output

Returns SRV record data for _matrix._tcp.<domain> including priority, weight, port number, and target hostname, sourced from Cloudflare DoH. Enables a Matrix client or federation service to directly connect to the correct homeserver without guessing.

## 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/matrix-tcp-srv-record-lookup-dc30e236/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)
