Return current user's nameservers

This function retrieves the default nameservers for the currently-authenticated user.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  get_nameserver_config

Response samples

Content type
application/json
{
  • "data": {
    • "nameservers": [
      • "ns1.example.com",
      • "ns2.example.com"
      ]
    },
  • "metadata": {
    • "command": "get_nameserver_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}