This function resets a DNS zone to its default values. This also resets the domain's subdomain DNS records, and restores zone file subdomains in the server's httpd.conf
file. For example, use this function to restore DNS zones that are corrupt.
Note:
Zone resets preserve valid TXT records, but all other records will return to their default values.
Important:
When you disable the DNS role, the system disables this function.
Note
You must include either the domain
or the zone
parameters.
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ resetzone
{- "metadata": {
- "command": "resetzone",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}