/dns/distribution/clients/{address}
0.2.28Unchanged since publicationCreate or replace a DNS distribution client or node entry
noneWhen 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 serverkey_hashstring, matching ^[0-9a-f]{64}$Requiredalso_nameserversarray of stringcreated_bystring or nulldisconnected_atstring or nullhostnamestring or nullinvite_hashstring, matching ^[0-9a-f]{64}$ or nullinvite_nameserverstring or nullipv4string or nullipv6string or nulljoined_atstring or nulllabelstringnameserverstring or nullnodebooleanportinteger or nullExample
See the API overview for how to set $API and $TOKEN.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
}'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 sentence400--address is required400Domain name required400Domain name too long400Invalid IPv4 address400Invalid domain name400X-Urbestack-Address must carry the client's own IPv4 address401Unknown key402This node refuses changes: <why>403The call came from <remote> but the server says its address is <said>. A server behind NAT cannot be a client403This 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 urbestack.com/docs/api/put-dns-distribution-clients-address/