v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
ZoneEdit

Reset a DNS zone to the server defaults

This function resets a domain's DNS zone to the server's default zone template.

Important:

  • This action destroys every custom record in the zone. Records that the zone template does not recreate, for example MX, TXT and CNAME records added by hand, are lost.
  • The reset outcome is reported in the data field rather than in the status field. A call can succeed at the API level while the zone rebuild itself fails, so check the result.status field in the returned data.

When you disable the DNS role, the system disables this function.

get/ZoneEdit/resetzone

Query parameters

domainstring domain required
Example:example.com

The domain whose DNS zone to reset.

Response

HTTP Request was successful.

errorsstring[] nullable
messagesstring[] nullable
status0 | 1
  • 1 — Success.
  • 0 — Failed. Check the errors field for more details.
warningsstring[] nullable

Example response

{
  "data": [
    {
      "result": {
        "status": 1,
        "statusmsg": "Zone Reset"
      }
    }
  ],
  "status": 1
}