cPanel API 2 Modules - ZoneEdit
Warning:
The cPanel API 2 system is deprecated. We strongly recommend that you use UAPI instead of cPanel API 2.
Introduction
The ZoneEdit module manages DNS zone files and records.
Important:
When you enable a non-Standard Node server profile, the system disables API calls associated with that profile's disabled roles.
Available functions
- 
cPanel API 2 Functions - ZoneEdit::add_zone_record— This function adds a new zone record.
- 
cPanel API 2 Functions - ZoneEdit::edit_zone_record— This function edits a zone record.
- 
cPanel API 2 Functions - ZoneEdit::fetch_cpanel_generated_domains— This function fetches zone files that cPanel generated for the account.
- 
cPanel API 2 Functions - ZoneEdit::fetchzone— This function retrieves a zone file.
- 
cPanel API 2 Functions - ZoneEdit::fetchzone_records— This function retrieves the domain's zone record modifications.
- 
cPanel API 2 Functions - ZoneEdit::fetchzones— This function fetches all of the account's zone files.
- 
cPanel API 2 Functions - ZoneEdit::get_zone_record— This function retrieves the domain's zone record.
- 
cPanel API 2 Functions - ZoneEdit::remove_zone_record— This function removes a zone record.
- 
cPanel API 2 Functions - ZoneEdit::resetzone— This function resets a zone file to its original state.