latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

DNS
Domain Management

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.

get/resetzone

Query parameters

domainstring domain
Example:example.com

The domain.

userstring username
Example:user

The domain's owner.

zonestring
Example:example.com.db

The zone file.

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "resetzone",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}