Restore DNS zone to default values

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.

SecurityBasicAuth
Request
query Parameters
domain
string <domain>

The domain.

Example: domain=example.com
user
string <username>

The domain's owner.

Example: user=user
zone
string

The zone file.

Example: zone=example.com.db
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/resetzone
Request samples
whmapi1 --output=jsonpretty \
  resetzone
Response samples
application/json
{
  • "metadata": {
    • "command": "resetzone",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}