Page tree
Skip to end of metadata
Go to start of metadata

This document is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 11.44

(Home >> DNS Functions >> Edit Zone Templates)


This interface allows you to edit the templates that cPanel & WHM uses to create DNS zone files for new domains. This feature is useful if you have a custom DNS configuration.

Edit templates

To edit a zone template, perform the following steps:

  1. Click the template type that you wish to edit. You can choose from the following template types:
    • simple — Edit zone file templates for domains that only have an A entry.
    • standard — Edit zone file templates for domains on a dedicated IP address, addon domains, or parked domains.
    • standardvirtualftp — Edit zone file templates for domains on a shared IP address.
  2. The zone file template will appear. Make the desired changes to the file.
    • For more information about the available DNS zone template file variables, read the Variables section below.
  3. Click Save.


You can use the following variables within DNS zone template files:

%cpversion%The version of cPanel & WHM.
%domain%The name of the domain that the system will create.
%ttl%The domain's Time To Live (TTL).
%nsttl%The nameserver's TTL.
%rpemail%The contact email address.
%serial%The zone record's serial number.
%nameserver%The primary nameserver's hostname.
%nameserver2%The secondary nameserver's hostname.
%nameserver3%The tertiary nameserver's hostname.
%nameserver4%The quaternary nameserver's hostname.
%nameservera%The primary nameserver's IP address.
%nameservera2%The secondary nameserver's IP address.
%nameservera3%The tertiary nameserver's IP address .
%nameservera4%The quaternary nameserver's IP address .
%ip%The domain's IP address.
%ftpip%The domain's FTP server's IP address.