DNS
DNS Cluster Settings
Update the local server's nameserver software
This function sets the nameserver software that the local server runs. The system queues the nameserver software that you select until the HTTP request finishes. Then, it sets the local server's nameserver software.
get/set_nameserver
Request
- Base URLhttps://whm-server.tld:2087/json-api
- AuthHTTP basic
Query parameters
nameserver'BIND' | 'PowerDNS' | 'Disabled' required
Example:BIND
The nameserver software.
- BIND — The calling user requires root-level access.
- PowerDNS — The calling user requires the DNS Clustering ACL.
- Disabled — The calling user requires root-level access.
Note:
For more information, read our Edit Reseller Nameservers and Privileges documentation.
Response
HTTP Request was successful.
Example response
{
"data": {
"message": "Queued task to set nameserver to bind successfully.",
"nameserver": "bind"
},
"metadata": {
"command": "set_nameserver",
"reason": "OK",
"result": 1,
"version": 1
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.