Return current user's nameservers

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

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/get_nameserver_config
Request samples
whmapi1 --output=jsonpretty \
  get_nameserver_config
Response samples
application/json
{
  • "data": {
    • "nameservers": [
      • "ns1.example.com",
      • "ns2.example.com"
      ]
    },
  • "metadata": {
    • "command": "get_nameserver_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}