# ZoneEdit

The ZoneEdit module for UAPI.

## Reset a DNS zone to the server defaults

 - [GET /ZoneEdit/resetzone](https://api.docs.cpanel.net/specifications/cpanel.openapi/zoneedit/zoneedit-resetzone.md): 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.

