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

/dns/distribution/nameservers/{name}

First published 12 Nov 20260.2.28Unchanged since publication

Move a DNS distribution nameserver to another node

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsall
Answers200 OK

Call as an administrator with a token that has the dns scope on any node. The destination node already serves the same zones. UrbeStack notifies the other nodes and updates the nameserver's IP address records on every node to point to the destination. The administrator must update the corresponding host record at the registrar.

The operation returns 409 if the move would leave a node without a nameserver. A 200 response includes name, moved_to, the resulting nameservers and nodes, and the notification results in told.

As a command

Run as root on the server

Parameters

namepath ·stringRequired

Request body

JSON· 1 field
tostringRequired
Licensed IPv4 address of the destination node. This server's own licensed IPv4 address is valid.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/dns/distribution/nameservers/alice" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "text"
  }'
Response · 200 OK
{
  "moved_to": "text",
  "name": "alice",
  "nameservers": [
    "text"
  ],
  "nodes": [
    {
      "address": "info@example.com",
      "hostname": "server.example.com",
      "ipv4": "text",
      "ipv6": "text",
      "nameservers": [
        "text"
      ],
      "port": 8443
    }
  ],
  "told": [
    {
      "done": true,
      "error": "Domain 'example.com' already exists",
      "host": "text",
      "kind": "profile",
      "node": "text",
      "subject": "text"
    }
  ]
}

Errors

16 errors, each a status and a sentence
400--name is required
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid port
400Invalid setting key
400Moving a nameserver needs the node it goes to, or say that it is dropped
400Say what becomes of the nameserver: --to ADDRESS, or --drop
400The nameserver name is needed
401Authentication required
404<name> is not one of this network's nameservers
404Setting '<key>' not found
409<name> is already answered by the node at <to>
409This server is not a node of a distribution network. Its own nameservers are set on DNS zones › Nameservers & addresses
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/post-dns-distribution-nameservers-name/