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.40

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


If you have a custom DNS setup, you may wish to edit the templates that cPanel & WHM use to create DNS zone files for new domains.

Edit templates

To edit zone file templates for...Click...
Domains with only an A entrysimple
Domains on a dedicated IP addressstandard
Addon domainsstandard
Parked domainsstandard
Domains on a shared IP addressstandardvirtualftp

On the next screen, WHM will display the zone file template:

  1. Edit the file.
  2. Click Save.

The following variables are available within DNS zone templates:

VariableDescrIP addresstion
%cpversion%cPanel version
%domain%Name of the domain being created
%ttl%Domain time to live
%nsttl%Nameserver time to live
%rpemail%Contact Email
%nameserver%Hostname of primary nameserver
%nameserver2%Hostname of secondary nameserver
%nameserver3%Hostname of third nameserver
%nameserver4%Hostname of fourth nameserver
%nameservera%IP address of primary nameserver
%nameservera2%IP address of secondary nameserver
%nameservera3%IP address of third nameserver
%nameservera4%IP address of fourth nameserver
%IP address%IP address of domain
%ftpIP address%IP address of FTP server for domain