DNS Templates

RSS

DNS Templates

Last updated November 15th, 2017

DNS Templates are designed to remove endless repetition in setting up your DNS records. They also make it easier to manage many domains as changes are made only once to the Template and all linked DNS Zones are updated automatically.

SiteHost has created some default DNS Templates to cater for some of our common customers requirements.

For example:

  • SiteHost Shared Hosting PHP5 - GMail MX: Sets all the DNS records required for a website to be hosted on the SiteHost shared hosting servers, but all the email to be managed by the Gmail servers.

  • SiteHost Shared Hosting PHP5: Sets all the DNS records required for a domain to be used with the SiteHost shared hosting servers.

You can also define your own DNS Templates. If you are a web developer managing multiple websites on your servers for example you could set up a DNS template that points the wildcard (@) and the www A record to your web servers IP, and then use this Template for all website domains on that server. Or if you have a number of clients using Google Apps you could create a Google Apps Domain template to point the website at your SiteHost VPS, and all mail/calendar records at the Google servers.

Create a Template

To create a template, follow the steps:

  1. Browse to DNS Zones.
  2. Click 'Templates'. A list of all the DNS Templates defined in your account will show. (Figure 1)
  3. At the top of the module, hit the 'Add Template' button.
  4. Enter the name you would like to give this template and click 'Add DNS Template'.
  5. To dynamically add additional DNS records, hit 'Add Record' button (below the DNS records). (Figure 2)
  6. Add the records, ensuring you select the correct type (A, CNAME, MX).
  7. Hit 'Save Changes' to confirm the changes to the template file.

Manage Existing Templates

To manage already created templates, follow the steps:

  1. Browse to DNS Zones.
  2. Click 'Templates'. (Figure 1)
  3. On the list of DNS Templates defined in your account, click on the entry you wish to edit.
  4. Update/Add information ensuring you select the correct type (A, CNAME, MX). (Figure 2)
  5. To dynamically add additional DNS records, hit 'Add Record' button (below the DNS records).
  6. Hit 'Save Changes' to confirm the changes to the template file.

Important: Changing a DNS Template will affect all zones that are currently using this template.


Figure 1

DNS Zone

Figure 2

DNS Zone


Next: Reverse DNS →

Can we improve this article? Suggest an improvement to this article.

Suggest an Improvement

Thank you for helping us to improve this Knowledge Base article. Please type your suggestions below:

Still need help? Get in touch with us.

If you aren't able to find the help you need then please send us a question and we can help you further.