# GET /dns/distribution

First published 12 Nov 2026 (release 0.2.28) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the dns group.

Get this server's DNS distribution status

- Who may call it: administrator
- Token scope, any of: dns, read, all
- Answers: 200 OK

Returns this server's role and the status shown in the Distribution nodes tab of the web interface. A node lists the nodes in its network with itself first. A client lists the nodes it sends zones to, with the last contact, last send, any error, daily check-in, and pending zone changes for each node.

Each pending zone change includes its attempt count and the node's last response. The client status also includes when the connection was established, the latest send, the combined list of pending changes, and the network nameservers published in its zones.

## As a command

- [urbestack-dns-status](https://urbestack.com/docs/commands/urbestack-dns-status.md): Shows this server's DNS distribution status, as in the Distribution nodes tab of the web interface.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/dns/distribution" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "checkin": {
    "at": "text",
    "due": true,
    "extra": 1,
    "not_rendered": 1,
    "refused": 1,
    "same": 1,
    "sent": 1
  },
  "client_list_owed": [
    {
      "attempts": 1,
      "created_at": "2026-09-09T10:15:00Z",
      "host": "text",
      "kind": "client-put",
      "last_attempt_at": "text",
      "last_error": "text",
      "node": "text",
      "subject": "text"
    }
  ],
  "clients": 1,
  "connected": true,
  "connected_at": "text",
  "departed": [
    {
      "address": "info@example.com",
      "at": "text",
      "hostname": "server.example.com",
      "nameservers": [
        "text"
      ]
    }
  ],
  "hello_at": "text",
  "last_error": "text",
  "last_sent_at": "text",
  "left": {
    "as": "client",
    "at": "text",
    "frozen_zones": 1,
    "nameservers": [
      "text"
    ],
    "nodes": [
      {
        "address": "info@example.com",
        "hostname": "server.example.com",
        "port": 8443
      }
    ],
    "removed_on": "text",
    "zones": "text"
  },
  "nameservers_here": [
    "text"
  ],
  "nodes": [
    {
      "address": "info@example.com",
      "hostname": "server.example.com",
      "ipv4": "text",
      "ipv6": "text",
      "nameservers": [
        "text"
      ],
      "port": 8443
    }
  ],
  "owed": [
    {
      "action": "put",
      "attempts": 1,
      "host": "text",
      "last_attempt_at": "text",
      "last_error": "text",
      "name": "alice",
      "node": "text"
    }
  ],
  "role": "standalone",
  "sends_to": [
    {
      "address": "info@example.com",
      "checkin": {
        "at": "text",
        "due": true,
        "extra": 1,
        "not_rendered": 1,
        "refused": 1,
        "same": 1,
        "sent": 1
      },
      "clients_seen": 1,
      "clients_total": 1,
      "host": "text",
      "hostname": "server.example.com",
      "joining": true,
      "last_contact_at": "text",
      "last_error": "text",
      "last_sent_at": "text",
      "nameservers": [
        "text"
      ],
      "only_here": [
        {
          "address": "info@example.com",
          "label": "my laptop"
        }
      ],
      "only_there": [
        {
          "address": "info@example.com",
          "label": "my laptop"
        }
      ],
      "owed": [
        {
          "action": "put",
          "attempts": 1,
          "host": "text",
          "last_attempt_at": "text",
          "last_error": "text",
          "name": "alice",
          "node": "text"
        }
      ],
      "port": 8443,
      "removed": {
        "at": "text",
        "on": "text"
      }
    }
  ],
  "server": {
    "address": "info@example.com",
    "host": "text",
    "hostname": "server.example.com",
    "label": "my laptop",
    "nameservers": [
      "text"
    ],
    "port": 8443
  },
  "zones": 1
}
```

## Errors

- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid port
- 400: Invalid setting key
- 401: Authentication required
- 404: Setting '<key>' not found
