latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

DNS
Resolvers

Update default nameservers

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

get/update_nameservers_config

Query parameters

nameserverstring domain
Example:ns1.example.com

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.

nameserver2string domain
Example:ns2.example.com

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.

nameserver3string domain
Example:ns3.example.com

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.

nameserver4string domain
Example:ns4.example.com

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.

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "update_nameservers_config",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}