# PUT /dns/distribution/nodes/{address}

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

UrbeStack release 0.2.35 API operation in the dns group.

Join the DNS distribution network as a node

- Who may call it: anyone (no token needed)
- Answers: 200 OK

Send the key issued by urbestack-dns-node-add as a Bearer credential in the Authorization header. Send the request from the joining server's licensed IPv4 address and use that same IPv4 address in the path and the X-Urbestack-Address header. It must match the IPv4 address registered for the key. An existing DNS client can use its pending invitation key to join the network it already sends its zones to. It remains the origin of those zones and keeps the invitation key as its node key.

A missing or unrecognized key returns 401. A missing or invalid X-Urbestack-Address header returns 400. A license refusal on the receiving node returns 402. An IPv4 address mismatch or use of a regular DNS client key returns 403. The receiving node can record the refusal reason for a recognized client, up to 300 characters.

For seven days after the receiving server leaves or is removed from the network, requests with a key it still recognizes return 410 with left, which includes at, zones, and nodes. A node that remains in the network returns 403 for a removed server's key for seven days after removal. That response includes removed with at, on, and node.

The body supplies the joining server's web interface hostname and port, the IP addresses for its nameserver records, and the names of the zones it owns. If both servers own a zone with the same name, the operation returns 409 and lists the conflicts. Set check to true to validate the join without applying it. A successful check returns joined set to false and includes overlaps.

A completed join registers the caller as a node and renders the DNS zones using its nameserver hostname and IP addresses. The receiving node notifies the other nodes during the join. It queues a job to send its own zones when the joining node next calls it, after the joining node has stored the receiving node's key. The DNS timer also sends any zones still due.

The 200 response includes the receiving node's hostname and version, the network's nameservers and nodes, and the client entry for the joining server. A completed join also returns the receiving node's key_hash and nameserver, its client list in rows, and the zone rendering outcome in dns.

## As a command

- [urbestack-dns-client-note](https://urbestack.com/docs/commands/urbestack-dns-client-note.md): Records when a DNS client last called the API using its key.

## Parameters

- `address` (path, string, required): Licensed IPv4 address of the joining server.

## Request body

JSON.

- `hostname` (string, required): Web interface hostname of the joining server.
- `port` (integer, required): Port on which the joining server's web interface listens.
- `zones` (array of string, required): Names of the DNS zones the joining server owns.
- `check` (boolean): Whether to validate the join without applying it.
- `ipv4` (string or null): IPv4 address for the joining server's nameserver records. Defaults to its licensed IPv4 address.
- `ipv6` (string or null)

## 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 PUT "$API/dns/distribution/nodes/info@example.com" \
  -H "Content-Type: application/json" \
  -d '{
    "check": true,
    "hostname": "server.example.com",
    "ipv4": "text",
    "ipv6": "text",
    "port": 8443,
    "zones": [
      "text"
    ]
  }'
```

Response, 200 OK:

```
{
  "client": {
    "address": "info@example.com",
    "label": "my laptop",
    "nameserver": "text",
    "node": true
  },
  "dns": {},
  "hostname": "server.example.com",
  "joined": true,
  "key_hash": "text",
  "nameserver": "text",
  "nameservers": [
    "text"
  ],
  "nodes": [
    {
      "address": "info@example.com",
      "hostname": "server.example.com",
      "ipv4": "text",
      "ipv6": "text",
      "nameservers": [
        "text"
      ],
      "port": 8443
    }
  ],
  "overlaps": [
    {
      "name": "alice",
      "relation": "same",
      "server": "text",
      "zone": "text"
    }
  ],
  "rows": [
    {
      "address": "info@example.com",
      "also_nameservers": [
        "text"
      ],
      "created_by": "text",
      "created_on": "text",
      "disconnected_at": "text",
      "hostname": "server.example.com",
      "invite_hash": "text",
      "invite_nameserver": "text",
      "ipv4": "text",
      "ipv6": "text",
      "joined_at": "text",
      "key_hash": "text",
      "label": "my laptop",
      "nameserver": "text",
      "node": true,
      "port": 8443
    }
  ],
  "version": "0.0.1"
}
```

## Errors

- 400: --address is required
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid domain name
- 400: X-Urbestack-Address must carry the client's own IPv4 address
- 401: Unknown key
- 402: This node refuses changes: <why>
- 403: The call came from <remote> but the server says its address is <said>. A server behind NAT cannot be a client
- 403: This key belongs to the client at <c.address>, and the call came from <remote>
- 403: This server was removed from the distribution network on 
- 410: This server is no longer a node of the distribution network: it 
