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

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

UrbeStack release 0.2.35 API operation in the dns group.

Apply the DNS distribution network's updated nameserver list

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

The node that moved or dropped a nameserver sends the complete ordered list in nameservers and the assignment for each name in holders. UrbeStack replaces the receiving node's list and renders its zones with the new list. The operation returns 409 if any node would be left without a nameserver or if any name is assigned to a node outside the network. A 200 response includes the resulting nameservers, nodes, and dns data.

Send the updating node's key as a Bearer credential in the Authorization header. Send the request from the node's licensed IPv4 address and use that same IPv4 address in X-Urbestack-Address and in the path. A missing or invalid X-Urbestack-Address returns 400. The operation returns 403 for an IPv4 address mismatch, a client's key, or the key of a node that has yet to join. If the receiving node's license prevents changes, it returns 402.

A missing or unknown key returns 401. For seven days after the calling server is removed, its revoked key can return 403 with removed details containing at, on, and node. For seven days after the receiving server leaves or is removed, it returns 410 to callers whose keys it still recognizes, with left details containing at, zones, and nodes. UrbeStack can record up to 300 characters of the refusal reason in the Clients tab for failed license or IPv4 address checks, use of a client's key, and errors applying the update.

## 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 node sending the update.

## Request body

JSON.

- `holders` (object of string, required): Mapping from each nameserver name to the licensed IPv4 address of the node that answers for it.
- `nameservers` (array of string, required): Nameserver names in the network's configured order.

## 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/nameservers" \
  -H "Content-Type: application/json" \
  -d '{
    "holders": {},
    "nameservers": [
      "text"
    ]
  }'
```

Response, 200 OK:

```
{
  "dns": {},
  "nameservers": [
    "text"
  ],
  "nodes": [
    {
      "address": "info@example.com",
      "hostname": "server.example.com",
      "ipv4": "text",
      "ipv6": "text",
      "nameservers": [
        "text"
      ],
      "port": 8443
    }
  ]
}
```

## 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 
