Loading...

Knowledge Base
Hosting Ad
 Up to 70% off  on  WordPress  hosting for WordPress Websites and Stores!
Categories:

Resellers: Edit DNS Zone Templates in WHM

Share

What Are DNS Zone Templates in WHM?

A DNS zone is a section of the domain name system used for administrative purposes. This section contains records that guide internet traffic to the proper destinations. These zone files are generated through a template, which can be modified using WHM's Edit Zone Templates interface in the DNS Functions section.

A DNS template refers to a predefined format of a DNS zone. The Edit Zone Templates interface allows you to modify the templates WHM utilizes to create DNS zone files for new domains. You can use this interface if you have custom DNS configurations. You can use a WHM DNS Zone Template for each new sign-up or when creating a new account.

Manage DNS Zone Templates in WHM by following this guide.



DNS Zone Template Example

Below is an example of a DNS Zone Template. To learn more about the variables used, check out cPanel's documentation.

; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@      %nsttl%	IN      SOA     %nameserver%. %rpemail%. (
		%serial%	; serial, todays date+todays
		86400		; refresh, seconds
		7200		; retry, seconds
		3600000		; expire, seconds
		86400 )		; minimum, seconds

%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
%domain%. %nsttl% IN NS %nameserver3%.
%domain%. %nsttl% IN NS %nameserver4%.

%nameserverentry%. IN A %nameservera%
%nameserverentry2%. IN A %nameservera2%
%nameserverentry3%. IN A %nameservera3%
%nameserverentry4%. IN A %nameservera4%

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.

mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN A %ftpip%

How to Edit DNS Zone Templates in WHM

As a reseller, you can update the default DNS zone template when creating a new account.

Warning! Modifying the DNS Zone Template can cause major DNS issues and may cause sites to not load.

There are risks involved in modifying WHM DNS Zone Templates. If you feel uncomfortable or unsure about making these changes, please contact Bluehost support via phone or live chat. We'll be more than happy to assist you with these changes.

  1. Log in to your reseller account.
  2. Under the list to the left, click DNS Functions.
  3. Click Edit Zone Templates.

Here, you will see three templates. The standardvirtualftp template is used for every new account. Please choose and edit this template with your custom settings.

Summary

A DNS template is a predefined format of a DNS zone that can be customized using WHM's Edit Zone Templates interface. Learn how to edit DNS Zone Templates in WHM when creating a new account and see an example of one. Please note that modifying the DNS zone template can cause severe DNS issues, leading to site loading problems. Therefore, it is recommended to seek support from experts if you are uncertain about making changes.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?

 
* Your feedback is too short

Loading...