/dns/replace
Replace an IP address or hostname in DNS records
dnsallSupply distinct from and to values of the same kind. UrbeStack matches whole IPv4 addresses in A records and SPF ip4: terms, whole IPv6 addresses in AAAA records and SPF ip6: terms, and whole hostnames in CNAME, MX, and SRV targets, regardless of who added the records. Use skip with a record ID or with ZONE:NAME:TYPE for a glue record drawn from the server's identity. Replacement includes the records UrbeStack maintains for the server, including its hostname's IP address and mail records and the nameservers' glue records. As in the zone editor, changing one of these records makes its record set manually maintained in that zone. Replacement skips delegations.
Template records that follow dns.ipv4 or dns.ipv6 take the new value and become manually maintained. If another record in the zone already has the same name, type, and new content, UrbeStack removes the old record. Each affected zone gets a new serial and is reloaded.
Supply zone to apply the replacement immediately and receive 200 with the result and publication outcome. Omit zone to queue a dns-replace job that applies the replacement across all zones. That response returns 202 with the job.
After trimming surrounding whitespace, from and to must contain 1 to 255 characters, excluding internal whitespace and U+0000 through U+001F. A missing from or to, a value that fails these checks, or a skip value other than an array or null returns 400.
As commands
Run as root on the serverfromstring, up to 255 charactersRequiredtostring, up to 255 charactersRequiredskiparray of valuezoneDomainNameExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/dns/replace" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"from": "text",
"skip": [
"text"
],
"to": "text",
"zone": "example.com"
}'200 OK{
"changes": [
{
"detached": true,
"from": "text",
"id": 1,
"name": "alice",
"removed": true,
"taken": true,
"to": "text",
"type": "rebuild",
"why": "text",
"zone": "text"
}
],
"from": "text",
"kept": [
{
"from": "text",
"id": 1,
"name": "alice",
"type": "rebuild",
"why": "text",
"zone": "text"
}
],
"kind": "ipv4",
"published": true,
"records": 1,
"reload": "text",
"skipped": 1,
"to": "text",
"zone": "text",
"zones": 1
}Errors
23 errors, each a status and a sentence400--from is required400--to is required, or --find to look only400A new job is queued or running400A record to leave alone is named by its id, or by ZONE:NAME:TYPE for one the panel writes from the identity, not '<s>'400Domain name required400Domain name too long400Invalid <what>: 400Invalid domain name400Invalid id400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Job parameters must be an object400The new value must be 400The old and the new value are the same400Unknown job type400Username '<value>' is reserved400from is the value to look for: an IPv4 address, an IPv6 address or a host name400skip holds record ids, and ZONE:NAME:TYPE for records the panel writes from the identity, not '<s>'400skip is a list of record ids, and of ZONE:NAME:TYPE for records the panel writes from the identity400to is the new value400to is the new value: an IPv4 address, an IPv6 address or a host name401Authentication required404User '<user>' not found404Zone '<name>' not foundChange log
3 changes since publication, newest first0.2.3526 Nov 20260.2.3526 Nov 2026DnsReplace→0.2.3526 Nov 2026DnsReplaceChange→0.2.014 Oct 2026urbestack.com/docs/api/post-dns-replace/