How to customize the DNS zone template for new domains

For server administrators · Updated 2026-10-29

On this page
  1. Steps
  2. Placeholders
  3. Good to know
  4. Reset to the default
  5. Common questions

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

  1. Log in to the administrator panel (https://your-server:2087).
  2. Open DNS Zones in the menu (section Websites) and click Zone template.
  3. 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=none

    This is the default template.

  4. Check Preview for example.com on the right. It shows the records a new zone would get.
  5. Click Save template. The message Zone template saved. New zones use it; existing zones are not changed. appears.

Placeholders

PlaceholderReplaced 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 NS records; 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).

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.