Version: 2.0.0
Edit Zone Templates
This interface allows you to edit the DNS zone file templates that OpenPanel uses when creating zones for new domains.
It is useful if you require custom DNS configurations.
INFORMATION
Edit Zone Templates is only shown in the Domains sidebar group when the dns module is enabled on the server.

- IPv4 Template – Used for new domains assigned IPv4 addresses.
- IPv6 Template – Used for new domains assigned IPv6 addresses.
Available Template Variables
You can include the following variables in your DNS zone templates:
| Variable | Description |
|---|---|
{domain} | The domain name the zone is being created for. |
{ns1} | Hostname of the primary nameserver (used in the NS record). |
{ns2} | Hostname of the secondary nameserver. |
{ns3} | Hostname of the tertiary nameserver. |
{ns4} | Hostname of the quaternary nameserver. |
{server_ip} | IP address of the domain (either IPv4 or IPv6, depending on the template). |
{rpemail} | Contact email address from OpenAdmin, or root@domain. |
The nameservers used for
{ns1}–{ns4}are configured under the panel's Nameservers/Branding settings. The default templates only reference{ns1}and{ns2};{ns3}/{ns4}are available if your custom template needs additional NS records.
Restore Defaults
To reset a template to its default version:
- Click Restore Default for the corresponding section.
- Then click Save Files to apply the changes.
⚠️ Defaults are pulled from the official GitHub repository. Always review before saving.
Was this helpful?