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

/dns/distribution/push

First published 12 Nov 20260.2.28Unchanged since publication

Queue a job to resend DNS zones

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsall
Answers202 Accepted

Queues a dns-push job and returns 202 with job. By default, the job sends zones that differ from the versions the destination nodes last acknowledged. Set all to true to send every zone, or use names to resend specific zones.

Use delete to remove named zones that the network still holds for this server after they were removed locally. Specify a node by IPv4 address to target that node. Omit node to target every node.

As a command

Run as root on the server

Request body

JSON ·DnsDistributionPush· 4 fields
allboolean
Whether to push every zone again, regardless of prior acknowledgments.
deletearray of string
Names of zones to delete from the receiving nodes. These are the extra zones reported by the check that the nodes still hold for this server and that no longer exist on it.
namesarray of string
Names of the only zones to push.
nodestring
IP address of the node to push to. Omit this field to push to every node.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/dns/distribution/push" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "all": true,
    "delete": [
      "text"
    ],
    "names": [
      "text"
    ],
    "node": "text"
  }'
Response · 202 Accepted
{
  "job": {
    "created_at": "2026-09-09T10:15:00Z",
    "created_by": 1,
    "created_by_name": "text",
    "dismissed_at": "text",
    "finished_at": "2026-09-09T10:15:04Z",
    "id": 1,
    "lane": "short",
    "log": "",
    "params": {},
    "progress": 100,
    "result": {},
    "started_at": "2026-09-09T10:15:01Z",
    "status": "queued",
    "type": "rebuild",
    "usual_seconds": 1
  }
}

Errors

12 errors, each a status and a sentence
400A new job is queued or running
400Domain name required
400Domain name too long
400Invalid <what>:
400Invalid IPv4 address
400Invalid domain name
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Job parameters must be an object
400Unknown job type
400Username '<value>' is reserved
401Authentication required
404User '<user>' not found
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-push/