Guides
What is DNS Record Template?
Learn about DNS Record Templates and how they can save you time
DNS Record Template is a pre-configured set of DNS records that you can reuse when adding new zones. Instead of manually creating the same DNS records every time you add a domain, you can create a template once and use it for all your domains.
Benefits of Using Templates
- β’ Save time by not creating the same records repeatedly
- β’ Ensure consistency across all your domains
- β’ Automatically create records when adding zones
- β’ Use dynamic placeholders like {{zone}} for flexibility
How to Create a Template
Step-by-step guide to create your first DNS record template
Creating a Template
- Go to Configuration
Navigate to the Configuration tab in the dashboard sidebar
- Open DNS Record Templates
Click on 'DNS Record Templates' in the Configuration page
- Click Create Template
Click the 'Create Template' button to start creating a new template
- Fill in Template Details
Enter a name and description for your template, then add DNS records. You can add multiple records like A, AAAA, CNAME, TXT, etc. For auto zone name in record content, you can use {{zone}} which will automatically be replaced with your zone name.
- Save the Template
Click 'Save' to create your template. It will now be available when adding new zones.
Using {{zone}} Placeholder
Learn how to use dynamic placeholders in your templates
The {{zone}} placeholder is a special feature that automatically replaces itself with the actual domain name when you add a zone. This makes your templates flexible and reusable for any domain.
How It Works
When you add a zone and select a template, all {{zone}} placeholders in the template will be automatically replaced with the zone name you're adding.
Example
add zone, for example zone name "example.com"
www.{{zone}} β 192.168.1.1www.example.com β 192.168.1.1Where to Use {{zone}}
- β’In the Name field: Use {{zone}} to create subdomains like www.{{zone}} or mail.{{zone}}
- β’In the Content field: Use {{zone}} if the content should include the domain name
- β’Works with all record types: A, AAAA, CNAME, TXT, MX, and more
How to Use Template When Adding Zone
Learn how to apply your template when adding a new zone
Using a Template
- Add a New Zone
Click 'Add Zone' button in the Zones page or dashboard
- Select Your Template
In the 'DNS Template' dropdown, select the template you created. The template will be applied automatically when the zone is created.
- Complete Zone Addition
Fill in other required fields and click 'Add Zone'. All DNS records from your template will be created automatically with {{zone}} replaced by the actual domain name. Templates can also be used when adding multiple zones at once (bulk add zone).
Important Note
Templates work with both single zone addition and bulk zone addition. When adding multiple zones at once, the same template will be applied to all zones with each zone's name replacing {{zone}}. You can also use templates when doing bulk add zone operations.