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.
Example response
{
"data": [
{
"result": {
"status": 1,
"statusmsg": "Zone Reset"
}
}
],
"status": 1
}