BuycPanel Blog

BuycPanel Blog

Latest news and updates

What are Edit Zone Templates?

Posted by Allura on 19 02 2018.

Edit Zone Templates helps you to edit the templates. It edits the templates cPanel & WHM uses to create DNS zone files for new domains. You may wish to use this interface when you use custom DNS configurations.

How to Edit a Template

To edit a template, following are the steps you need to perform

  1. Click on the template type that you wish to edit. Then the template will appear. You can select the template types from the following options:
  • simple — Edit your template for domains with only an A entry.
  • standard — Edit your template for domains on a dedicated IP address. Even addon domains, or parked domains.
  • standard virtual ftp — Edit your template for domains on a shared IP address.
  1. Make the desired changes to the file as per your choice.
  2. Click Save.

Zone Template Editor

The Zone Template Editor will allow you to edit the default zones that are used when creating DNS entries. Unless you have a custom setup, you do not need to edit these.

For edit zone template please follow the steps given below:

  • To access the DNS Functions Menu, click on DNS Functions.
  • Click on Edit Zone Templates.
  • Click on the type of editing you require.
  • Edit the zone template in the field that appears.
  • Click on the Save button.

 

Listed Below are Some Key Variables

You can use the DNS zone template files within the following Variables.

VARIABLES DESCRIPTION
%cpversion%  Version of cPanel & WHM.
%domain%  Domain name.
%ttl%  Domain’s Time To Live (TTL).
%nsttl%  Nameserver’s TTL.
%rpemail%  Contact email address.
%serial%  Zone record’s serial number.
%nameserver%  Primary nameserver’s hostname.
%nameserver2%  Secondary nameserver’s hostname.
%nameserver3%  Tertiary nameserver’s hostname.
%nameserver4%  Quaternary nameserver’s hostname.
%nameservera% Primary nameserver’s IP address.
%nameservera2%  Secondary nameserver’s IP address.
 

%nameservera3%

 Tertiary nameserver’s IP address.
%nameservera4%  Quaternary nameserver’s IP address.
%ip%  Domain’s IP address.
%ftpip%  Domain’s FTP server’s IP address.

 

Conclusion

This interface allows you to edit templates. This interface edits the templates that cPanel and WHM uses to create DNS zone files. You may use Edit Zone Templates while using custom DNS configurations.