Update default nameservers

This function updates nameservers in the wwwacct.conf file. For more information, read our Installation Guide - Customize Your Installation documentation.

SecurityBasicAuth
Request
query Parameters
nameserver
string <domain>

The nameserver to add or update as the wwwacct.conf file's NS setting. If you do not supply a value, the function does not update the setting.

Example: nameserver=ns1.example.com
nameserver2
string <domain>

The nameserver to add or update as the wwwacct.conf file's NS2 setting. If you do not supply a value, the function does not update the setting.

Example: nameserver2=ns2.example.com
nameserver3
string <domain>

The nameserver to add or update as the wwwacct.conf file's NS3 setting. If you do not supply a value, the function does not update the setting.

Example: nameserver3=ns3.example.com
nameserver4
string <domain>

The nameserver to add or update as the wwwacct.conf file's NS4 setting. If you do not supply a value, the function does not update the setting.

Example: nameserver4=ns4.example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/update_nameservers_config
Request samples
whmapi1 --output=jsonpretty \
  update_nameservers_config
Response samples
application/json
{
  • "metadata": {
    • "command": "update_nameservers_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}