This function lists the server's DNS zones.
Important:
When you disable the DNS role, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ listzones
{- "data": {
- "zone": [
- {
- "domain": "example.com",
- "zonefile": "example.net.db"
}
]
}, - "metadata": {
- "command": "listzones",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}