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.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ has_local_authority \ domain='example.com'
{- "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
}
}