DNS
DNS Zones
Return server's DNS zones
This function lists the server's DNS zones.
Important:
When you disable the DNS role, the system disables this function.
get/listzones
Request
- Base URLhttps://whm-server.tld:2087/json-api
- AuthHTTP basic
Response
HTTP Request was successful.
Example response
{
"data": {
"zone": [
{
"domain": "example.com",
"zonefile": "example.net.db"
}
]
},
"metadata": {
"command": "listzones",
"reason": "OK",
"result": 1,
"version": 1
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.