# Matrix Federation SRV DNS Lookup (matrix-fed._tcp)

> Matrix Federation SRV DNS Lookup (matrix-fed._tcp) 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-fed._tcp SRV DNS records for a given domain via Cloudflare DoH, returning priority, weight, port, and target host for Matrix federation service discovery.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/srv/matrix-fed-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-federation-srv-dns-lookup-matrix-fed-tcp-765fba3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9VjVxX0O8SAMYYZwm7a8A

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-federation-srv-dns-lookup-matrix-fed-tcp-765fba3e
```

Example prompt: Look up the _matrix-fed._tcp SRV record for matrix.org so I can find out what host and port handle its Matrix federation traffic.

## When to prefer this

Choose this endpoint when you need to discover the actual Matrix federation server (host and port) for a domain without manually guessing hostnames, particularly when implementing or debugging Matrix protocol federation. Prefer this over generic SRV lookups when specifically targeting the _matrix-fed._tcp service type.

## Known failure modes

- Domain has no _matrix-fed._tcp SRV record configured — returns empty or NXDOMAIN response
- Malformed or missing domain input — returns an error
- Cloudflare DoH upstream timeout or error — transient failure
- Domain is valid but Matrix federation is not configured — no records found

## How this service works

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

## Output

Returns the SRV record details for the _matrix-fed._tcp service under the queried domain, including priority, weight, port number, and target hostname, as resolved via Cloudflare's DNS over HTTPS infrastructure.

## 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-federation-srv-dns-lookup-matrix-fed-tcp-765fba3e/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)
