---
title: "List DNS zones"
method: GET
path: "/agent/dns/zones"
tags: ["DNS"]
---

# List DNS zones

`GET /agent/dns/zones`

## Request

- Base URL: `https://edge.network`
- URL: `https://edge.network/agent/dns/zones`
- Auth: HTTP bearer

All DNS zones on the account.

## Response `200`

Success.

- object
  - `zones` DnsZone[], required
    - `id` string, required
    - `domain` string, required
    - `records` DnsRecord[]
      - `id` string
      - `type` 'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS', required
      - `name` string, required: Record name, e.g. "www" or "@" for the zone root.
      - `data` string, required: Record value, e.g. an IP address or target hostname.
      - `ttl` number
      - `priority` number, nullable: MX priority.
  - `tell_user` string: Human-readable summary of what happened, for the agent to relay to its operator.

## Other responses

- `400`: Validation error — the response body explains what to fix.
- `401`: Missing or invalid agent access code. The body includes self-signup pointers.
- `429`: Rate limited. Honour Retry-After and the RateLimit-* headers before retrying.

---

[API](https://skmtc.dev/edge/apis/edge-network-agent-api.md) · [All operations](https://skmtc.dev/edge/apis/edge-network-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/edge/apis/edge-network-agent-api/revisions/49b5f2adf020?raw)
