# GET /dns/distribution/check

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

UrbeStack release 0.2.35 API operation in the dns group.

Check whether DNS distribution nodes are in sync

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

UrbeStack contacts every node to refresh the network's node list. It drops departed nodes and sends every local zone to newly discovered nodes before comparing their copies.

The check requests zone hashes in one call per node and compares them with the local hashes. For each node, it reports how many zones match, gives the records from both servers for zones that differ, and lists missing, unrendered, and extra zones. If a node cannot be queried, its entry gives the reason. If no node can be queried, the operation returns 502.

## As a command

- [urbestack-dns-check](https://urbestack.com/docs/commands/urbestack-dns-check.md): Compares the hashes of this server's DNS zones with those reported by each node in its DNS distribution network.

## Parameters

- `node` (query, string): IPv4 address of a single node to check, with all nodes checked by default. Returns 404 if this server does not send zones to the specified node.

## 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/check?node=text" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "checked_at": "text",
  "in_sync": 1,
  "nodes": [
    {
      "address": "info@example.com",
      "differ": [
        {
          "error": "Domain 'example.com' already exists",
          "here": [
            "..."
          ],
          "name": "alice",
          "there": [
            "..."
          ]
        }
      ],
      "error": "Domain 'example.com' already exists",
      "extra": [
        "text"
      ],
      "host": "text",
      "in_sync": 1,
      "missing": [
        "text"
      ],
      "named_running": true,
      "not_rendered": [
        "text"
      ],
      "same": 1
    }
  ]
}
```

## Errors

- 400: Invalid IPv4 address
- 401: Authentication required
