Update default nameservers

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

Authorizations:
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

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  update_nameservers_config

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "update_nameservers_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}