Get your free beta license ↗
API operation · dns group
GET

/dns/distribution

First published 12 Nov 20260.2.28Unchanged since publication

Get this server's DNS distribution status

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsreadall
Answers200 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

Run as root on the server

Example

See the API overview for how to set $API and $TOKEN.
Request
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

9 errors, each a status and a sentence
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid port
400Invalid setting key
401Authentication required
404Setting '<key>' not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.28 on 12 Nov 2026.
urbestack.com/docs/api/get-dns-distribution/