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

/dns/distribution/zones

First published 12 Nov 20260.2.28Unchanged since publication

List the calling client's DNS zones and their hashes

Who may call it
Anyone (no token needed)
Token
none
Answers200 OK

The response includes every zone the receiving server holds for the client in a single response. Compare each zone's record hash with the corresponding local hash to detect differences. The rendered field indicates whether the zone file on disk has the zone's current serial. The named_running field indicates whether the DNS daemon responds, checked once per request.

Send the client's DNS distribution key as the bearer credential in the Authorization header. Both X-Urbestack-Address and the request's source IPv4 address must match the client's licensed IPv4 address registered for the key. An accepted call updates the last call time, clears any previous refusal and marks a disconnected client as connected.

A missing or invalid X-Urbestack-Address returns 400. A missing or unrecognized key returns 401. A license refusal on the receiving node returns 402. An IPv4 address mismatch returns 403. For seven days after a key is removed, the receiving node returns 403 for that key with details in removed. For seven days after the receiving server leaves or is removed from the network, it returns 410 for keys it still recognizes, with departure details and the remaining nodes in left.

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/zones"
Response · 200 OK
{
  "named_running": true,
  "nodes": [
    {
      "address": "info@example.com",
      "hostname": "server.example.com",
      "ipv4": "text",
      "ipv6": "text",
      "nameservers": [
        "text"
      ],
      "port": 8443
    }
  ],
  "zones": [
    {
      "hash": "text",
      "name": "alice",
      "rendered": true,
      "rows": 1,
      "serial": 1
    }
  ]
}

Errors

16 errors, each a status and a sentence
400--address is required
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid port
400Invalid setting key
400X-Urbestack-Address must carry the client's own IPv4 address
401Unknown key
402This node refuses changes: <why>
403The call came from <remote> but the server says its address is <said>. A server behind NAT cannot be a client
403This key belongs to the client at <c.address>, and the call came from <remote>
403This server was removed from the distribution network on
404Setting '<key>' not found
410This server is no longer a node of the distribution network: it
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-zones/