Edit Zone Templates

Edit Zone Templates

his interface allows you to edit the templates that cPanel & WHM uses to create DNS zone files for new domains. You may wish to use this interface when you use custom DNS configurations.

Edit templates

To edit a 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 the template for domains with only an A entry.
    • standard — Edit the template for domains on a dedicated IP address, addon domains, or parked domains.
    • standardvirtualftp — Edit the template for domains on a shared IP address.
  2. The template will appear. Make the desired changes to the file.
    Click Save.
    • For more information about the available template variables, read the Variables section below.
  3. Click Save.

Variables

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

Variable
Description
%cpversion% The version of cPanel & WHM.
%domain% The name of the domain that the system creates.
%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.
 
  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

Add a DNS Zone

Add a DNS ZoneWhen you add a domain to your server, WHM automatically configures its DNS zone....

Add an A Entry for Your Hostname

Add an A Entry for Your Hostname An A entry, also known as an A record or an address record, is...

Delete a DNS Zone

Delete DNS Zone This feature allows you to delete DNS zones from your server. This is useful,...

Edit DNS Zone

Edit DNS Zone This feature allows you to edit the records in a domain’s DNS zone file....

Edit MX Entry

Edit MX Entries A mail exchanger (MX) entry determines which server receives mail for a domain...