Editing a DNS Template Using WHM
In this article, we will present the steps necessary to edit a DNS template. The system will use this template when creating new DNS zones.
Introduction
- The DNS (Domain Name Service) converts human-readable domain names (e.g.: example.com) into computer-readable IP addresses (e.g.: 192.0.32.10). DNS relies on "DNS zones" that exist on the server to convert domain names to IP addresses.
- WHM offers the possibility to create a template that will be used by the system when adding new DNS zones.
Requirements
- WHM login details. These can be found in the email with the management details of the reseller account or the VPS with cPanel/WHM.
Steps
- After logging into the WHM panel on the left side of the page, we will navigate to the DNS Functions section and click on Edit Zone Templates. Alternatively, we can search for this menu using the search field at the top left.

- On the next page, we will be able to edit three types of templates.
simple - Domains that contain only a DNS A record.
standard - Standard domains, which are on a dedicated IP, addon domains, or parked domains.
standardvirtualftp - Domains that are on a shared IP. - As an example, we will modify a standard type template for domains with a dedicated IP. We select standard.

- On the next page, the DNS template will load. Here we can use the syntax and variables provided to create new records in the template. The variables we can use are:
%cpversion% - The cPanel/WHM version.
%domain% - The domain name.
%ttl% - The domain's TTL.
%nsttl% - The nameserver's TTL.
%rpemail% - The administrator's email address.
%serial% - The DNS zone serial.
%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 associated FTP server address. - As an example, we will add a record to the template that points the subdomain demo.domainname.tld to the IP allocated to the main domain (marked in green in the image below). After adding, we will click the Save button at the bottom of the page.

- From this moment, all domains with a dedicated IP will contain the DNS record added in the template.