/dns/replace
Find DNS records or preview a replacement
dnsreadallSearch every zone, or supply zone to search one. 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. The search includes records regardless of who added them.
Omit to to list matches by zone and record ID. Supply to to preview a replacement. Both modes are read-only. taken marks records UrbeStack maintains for the server, including the nameservers' glue records drawn from the server's identity. These glue records have id null. Replacing a record marked taken makes its record set manually maintained in that zone, as in the zone editor. The kept list shows matching delegations.
After trimming surrounding whitespace, from and any nonempty to must contain 1 to 255 characters, excluding internal whitespace and U+0000 through U+001F. A missing from or a value that fails these checks returns 400.
As a command
Run as root on the serverParameters
fromquery ·string, up to 255 charactersRequiredtoquery ·string, up to 255 characterszonequery ·DomainNameExample
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/dns/replace?from=text&to=text&zone=example.com" \ -H "Authorization: Bearer $TOKEN"
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",
"records": 1,
"skipped": 1,
"to": "text",
"zone": "text",
"zones": 1
}Errors
13 errors, each a status and a sentence400--from is required400--to is required, or --find to look only400A 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 domain name400Invalid id400The new value must be 400The old and the new value are the same400from is the value to look for: an IPv4 address, an IPv6 address or a host name400to is the new value: an IPv4 address, an IPv6 address or a host name401Authentication required404Zone '<name>' not foundChange log
2 changes since publication, newest first0.2.3526 Nov 20260.2.3526 Nov 2026DnsReplaceChange→0.2.014 Oct 2026urbestack.com/docs/api/get-dns-replace/