Winter Sale — Choose a hosting or VPS plan now with discounts of up to 40%activate now
TutorialsDNS

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.

Views 647Updated 1 anPublished on 26/09/2018by Sebastian Szlivka

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.

Edit Zone Templates panou WHM

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

setare sablon standard pe ip dedicat

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

Editare Zone Template standard

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

Similar Articles

DNS settings in the Webuzo panelTutorials /Webuzo

Learn how to edit and set DNS records in the Webuzo panel. Follow the steps to effectively manage domains and subdomains.

48
by Alexandru Rogojan
Views 2253
Updated 10 months ago
Published on 14/09/2017
Changing the PHP version in cPanel on VPS hosting packages via MultiPHP ManagerTutorials /cPanel

In this article, we will present the necessary steps to change the PHP version in a cPanel account using MultiPHP Manager.

46
by Sebastian Szlivka
Views 2481
Updated 1 year ago
Published on 18/10/2017
Clear cache and history in Chrome browserTutorials /Apps

Learn how to delete your history and cache in Google Chrome using the Ctrl+Shift+Delete key combination. The tutorial includes simple steps and applicability in other browsers.

35
by Florin Petran
Views 6215
Updated 5 years ago
Published on 08/01/2018
Creating an email account in cPanelTutorials /cPanel

The cPanel allows for the creation of an unlimited number of email accounts associated with hosted domains. This tutorial will explain the necessary steps to create and access an email account.

27
by Cătălin Adrian
Views 4955
Updated 1 year ago
Published on 28/06/2017
Installing SSL certificate in WordPressTutorials /WordPress

Learn how to install an SSL certificate in WordPress, ensuring automatic redirection to HTTPS and encryption of transferred data. Follow the simple steps!

26
by Cătălin Adrian
Views 7405
Updated 1 year ago
Published on 28/02/2018