Validate local server is authoritative

This function checks whether the local server has the authority to publish changes for the domain's DNS records.

Important:

When you disable the DNS role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
domain
required
string

The domain to check whether the local server is authoritative for the domain's DNS records.

Note:

To check multiple domains, duplicate or increment the parameter name. For example, to check three domains, use the domain parameter multiple times. Or the domain, domain-1, and domain-2 parameters.

Examples:
domain=domain=example.com domain-1=example1.com domain-2=example2.com
domain=example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/has_local_authority
Request samples
whmapi1 --output=jsonpretty \
  has_local_authority \
  domain='example.com'
Response samples
application/json
{
  • "data": {
    • "records": [
      • {
        • "domain": "example.com",
        • "error": "(XID qdbmuk) DNS query (example3.com/SOA) timeout!",
        • "local_authority": 1,
        • "nameservers": [
          • "ns1.example.com",
          • "ns2.example.com"
          ],
        • "zone": "example.com"
        }
      ]
    },
  • "metadata": {
    • "command": "has_local_authority",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}