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

/dns/distribution/clients/{address}

First published 12 Nov 20260.2.28Unchanged since publication

Create or replace a DNS distribution client or node entry

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

When a network node adds or changes a client or node, it sends the complete entry to the other nodes. Use the licensed IPv4 address of the client or node as {address}. The receiving node replaces the entry while retaining its locally recorded last call time and refusal reason. The response includes client and created. Creation returns 201 with created set to true. Replacement returns 200 with created set to false.

Send the calling node'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 calling node's licensed IPv4 address registered for the key. A client key or an IPv4 address mismatch returns 403. A missing or invalid X-Urbestack-Address or use of the receiving node's own IPv4 address as {address} returns 400. A missing or unrecognized key returns 401. A license refusal on the receiving node returns 402. A key already assigned to another entry or an attempt to add a fourth node returns 409.

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

Request body

JSON ·DnsClientRow· 14 fields
key_hashstring, matching ^[0-9a-f]{64}$Required
SHA-256 hash of the key's secret, encoded as 64 lowercase hexadecimal characters.
also_nameserversarray of string
Nameserver names of departed nodes that this node serves alongside its own because it was the first node to remain in the network.
created_bystring or null
Administrator who created the entry on the sending node.
disconnected_atstring or null
Time the client disconnected and left its zones on the network, in UTC using YYYY-MM-DDTHH:MM:SSZ. This field is omitted or null for a connected client.
hostnamestring or null
invite_hashstring, matching ^[0-9a-f]{64}$ or null
SHA-256 hash of the joining key's secret, encoded as 64 lowercase hexadecimal characters. Applies to a client invited to join as a node while the invitation is pending.
invite_nameserverstring or null
Nameserver name the invited client will serve once it joins as a node.
ipv4string or null
ipv6string or null
joined_atstring or null
Time the node joined the network, in UTC using YYYY-MM-DDTHH:MM:SSZ.
labelstring
Label assigned by the administrator. For a node, the label defaults to its nameserver name if omitted.
nameserverstring or null
Nameserver name served by the node. Required for a node.
nodeboolean
Whether the entry represents a network node. A value of false indicates a client.
portinteger or null
Port on which the node's UrbeStack instance responds.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X PUT "$API/dns/distribution/clients/{address}" \
  -H "Content-Type: application/json" \
  -d '{
    "also_nameservers": [
      "text"
    ],
    "created_by": "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
  }'
Response · 200 OK
{
  "client": {
    "address": "info@example.com",
    "also_nameservers": [
      "text"
    ],
    "created_at": "2026-09-09T10:15:00Z",
    "created_by": "text",
    "created_on": "text",
    "disconnected_at": "text",
    "hostname": "server.example.com",
    "ipv4": "text",
    "ipv6": "text",
    "joined_at": "text",
    "joining_as": "text",
    "label": "my laptop",
    "last_error": "text",
    "last_seen_at": "text",
    "nameserver": "text",
    "node": true,
    "port": 8443,
    "zones": 1
  },
  "created": true
}

Errors

12 errors, each a status and a sentence
400--address is required
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid domain name
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
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/put-dns-distribution-clients-address/