Table of Contents

What are templates?

Templates are reusable groups of DNS records that can be applied to any of your domains. They speed up the entry of DNS records and reduce possible mistakes like typos and other errors.

You can access your templates at any time for the top navigation bar, next to your domains and contacts.

Creating a template

To create a new template, browse to https://dnsimple.com/templates or use the “templates” link on the top navigation bar. Click on “New Template”

Template main page

Fill in the form for your template. In this example, you will create a template to automate the creation of a CNAME record pointing to a specific address in Heroku.

Template new

Now that you have the basic information for the template, it is time to create the record for it. In this example, you are only creating one record, but there is no limit to the number of records that you can have on a template.

The keyword {{domain}} automatically fills in the domain name to which the template is applied. The symbol @ can also be used as it is equivalent to {{domain}}.

Template new record

Applying a template

Navigate to the record editor and select “Template” from the dropdown.

Apply the template from the record editor

Select the template that you wish to apply. In this example, you will apply the template that you just created above.

Apply the template from the record editor

If the template is applied sucessfully, you will see the new record.

Apply the template from the record editor

If the template is not be applied, it is possible that the content of the template conflicts with an existing record on your domain. For example, ifyour domain already has a “beta” CNAME record, the template will not apply. Templates do not override any existing DNS records on your domain.