How To Create A DNS Template In WHM

Create a DNS template, you can define default records (like A, MX, CNAME, and TXT records) that will automatically apply when new domains or subdomains are added. Domain Name System or DNS templates are useful for saving time and ensuring consistency when managing multiple domains.

This feature is ideal for resellers, developers, or businesses that manage multiple websites with similar DNS configurations.

Creating a DNS Template in WHM

Create a DNS templates are created in WHM (Web Host Manager), not the standard cPanel interface. You’ll need reseller or root access to follow these steps.

This article assumes that you have already logged into your Domains.co.za Account – refer below for steps on how to do this.

How To Create A DNS Template In WHM

1. From the dashboard, go to Manage Services and open your VPS or Dedicated Server hosting plan.

How To Login To Domains.co.za Account - Domains.co.za Dashboard

2. Click Manage next to your domain and then Login to WHM.

3. In WHM, search for Edit Zone Templates using the search bar.

4. Click Edit Zone Templates under DNS Functions.

Types of DNS Zone Templates

WHM allows you to edit three types of DNS zone templates:

  • standardvirtualftp: Used when an account is created with an FTP subdomain.
  • standardvirtualmac: This is used for Macintosh server configurations.
  • standardvirtualhost: The default used when you create a new cPanel account.

4. Click on standardvirtualhost to define a default DNS template for new domains.

Modifying the DNS Template

Inside the editor, you’ll see a list of standard DNS entries in BIND format. You can:

  • Change default A records (e.g., point new domains to a specific IP).
  • Add CNAME records for www or mail.
  • Set default MX records for email routing.
  • Include TXT records for SPF or DKIM authentication.

5. Once your changes are made, scroll down and click Save.

Additional Information

How to Test DNS Template

To test, add a domain and inspect the DNS Zone via WHM > Edit DNS Zone.

Custom DNS for Specific Domains

You can always override DNS records individually using Edit DNS Zone in WHM.

General DNS Template Information

  • Use with Caution: Any changes made to templates will apply to all new domains created after the change; they won’t affect existing domains.
  • Restoring Defaults: Manually remove or adjust entries to revert changes. There is no “reset to default” button.
  • Template Syntax: Ensure DNS records follow proper syntax; errors may prevent proper domain resolution.
  • Back up Before Changes: Always back up your templates or take a screenshot before editing them.

Login to Domains.co.za Account

1. Go to the Domains.co.za website Account Login page.

How To Login To Domains.co.za Account - Login in to Domains.co.za Account

2. Enter your Email and Password and click the Sign In button.

3. You will see the Domains.co.za Dashboard, displaying the Manage Account menu on the left and your Account Information, Account Overview and Open Support Tickets on the right.

How To Login To Domains.co.za Account - Domains.co.za Dashboard

What Our Customers say...