Update remote DNS server's nameserver software

This function sets the nameserver software that the remote servers in a DNS cluster run. The system queues the nameserver software that you select until the HTTP request finishes. Then, it sets the remote servers' nameserver software.

SecurityBasicAuth
Request
query Parameters
nameserver
required
string

The nameserver software.

  • BIND
  • PowerDNS
  • Disabled
Enum: "BIND" "PowerDNS" "Disabled"
Example: nameserver=BIND
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/set_nameserver
Request samples
whmapi1 --output=jsonpretty \
  set_nameserver \
  nameserver='BIND'
Response samples
application/json
{
  • "data": {
    • "message": "Queued task to set nameserver to bind successfully.",
    • "nameserver": "bind"
    },
  • "metadata": {
    • "command": "set_nameserver",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}