How to customize the DNS zone template for new domains
The zone template is the list of records every new zone starts with: new accounts, addon domains, aliases and standalone zones. Change it, for example, to send all new domains' email to an outside mail service or to add a verification record.
Steps
- Log in to the administrator panel (
https://your-server:2087). - Open DNS Zones in the menu (section Websites) and click Zone template.
- Edit the text. One record per line: name, type, priority (MX and SRV only), value:
@ NS {ns1}. @ NS {ns2}. @ A {ip} @ AAAA {ipv6} www CNAME {domain}. mail A {ip} mail AAAA {ipv6} ftp A {ip} @ MX 0 mail.{domain}. @ TXT v=spf1 +a +mx +ip4:{ip} +ip6:{ipv6} ~all _dmarc TXT v=DMARC1; p=noneThis is the default template.
- Check Preview for example.com on the right. It shows the records a new zone would get.
- Click Save template. The message Zone template saved. New zones use it; existing zones are not changed. appears.
Placeholders
| Placeholder | Replaced by |
|---|---|
{domain} | The new zone's domain |
{ip} | The account's IP address (or the IP entered for a standalone zone) |
{ipv6} | The server's shared IPv6 address |
{ns1}, {ns2} | The nameservers: the reseller's own when the account belongs to a reseller who set them, otherwise the server's |
{hostname} | The server's hostname |
Good to know
- Lines starting with
#are ignored. - The template must contain
NSrecords; otherwise it is not saved. - Each line is checked like a record in the Zone Editor. An error names the line, for example
Line 5: A record requires an IPv4 address. - When the server has no IPv6 address, lines with
{ipv6}are skipped and+ip6:{ipv6}is removed from the SPF record. - Existing zones are never changed. Edit them in DNS Zones if needed.
- Resellers cannot change the template.
Reset to the default
Click Reset to default (shown only when you changed the template) and confirm.
Common questions
Why does the TTL not appear in the template?
Template records get the Default TTL from Server Settings (normally 14400).
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to edit any DNS zone as administrator or reseller
Find, open and edit the DNS zones of customer accounts from the DNS Zones page of the administrator panel, as the server administrator or a reseller.
- DNS record types explained (A, AAAA, CNAME, MX, TXT, SRV, CAA)
What each DNS record type supported by the control panel does, the exact format each value must have, and the TTL range, with examples you can copy.
- How to set up private nameservers for a reseller
Give a reseller branded nameservers such as ns1.their-brand.com, register glue records, and apply the new nameservers to existing customer zones.
- How to add a DNS-only zone (domain without hosting)
Host only the DNS of a domain on your nameservers, without a hosting account, by adding a standalone zone in the administrator panel, and delete it later.