openpanel/website/docs/admin/domains/dns_templates.md
2025-06-02 19:12:32 +02:00

24 lines
974 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
sidebar_position: 3
---
# Edit Zone Templates
This interface allows you to edit the templates that OpenPanel uses to create DNS zone files for new domains. You may wish to use this interface when you use custom DNS configurations.
![edit zone screenshot](/img/admin/dns_templates_admin.png)
- **IPv4 Template**: Template used for new user domains with IPv4 addresses.
- **IPv6 Template**: Template used for new user domains with IPv6 addresses.
You can use the following variables within DNS zone template files:
| Variable | Description |
| -------- | ------- |
| `{ns1}` | The primary nameservers hostname for the primary NS record. |
| `{ns2}` | The secondary nameservers hostname for the secondary NS record. |
| `{ns3}` | The tertiary nameservers hostname for the tertiary NS record. |
| `{ns4}` | The quaternary nameservers hostname for the quaternary NS record. |
| `{server_ip}` | The domains IPv4 or IPv6 address. |