# DNS Zones & Templates

### PUQ Web Hosting module **[WHMCS](https://puqcloud.com/)**
#####  [Order now](https://puqcloud.com/) | [Download](https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-WEB-Hosting/) | [Community](http://community.puqcloud.com/)

## DNS Zones

Infrastructure → **DNS Zones** lists every **logical** zone (one row per zone). The **Cluster** column shows the per‑DNS‑server deploy state, so you can see at a glance that a zone is live on every nameserver. A **Redeploy** action re‑pushes the zone.

![DNS zones](https://doc.puq.info/uploads/images/gallery/2026-06/embedded-image-5ucm8gbe.png)

Because zones are logical and replicated, the module gives you an **active‑active** nameserver cluster — the same zone is served identically by every attached DNS node.

## DNS Zone Templates

Infrastructure → **DNS Zone Templates** holds the record sets used when a new zone is created. You can mark one **Default**, add more, or **Seed from file**.

![DNS zone templates](https://doc.puq.info/uploads/images/gallery/2026-06/embedded-image-ugvhpipj.png)

Open a template to edit its records. Placeholders are substituted at provisioning time — `{domain}`, `{server_ip}`, `{mail_server_ip}`, `{mail_server_hostname}`, `{ns1}`…`{ns8}`, `{domainkey}` (DKIM), `{client_id}`, `{service_id}`, `{year}`, `{unixtime}`.

![DNS zone template editor](https://doc.puq.info/uploads/images/gallery/2026-06/embedded-image-fywbufdu.png)

The shipped **Default** template is a complete, modern web + mail record set:

* **NS** `@` → `{ns1}` / `{ns2}`
* **A** `@` → `{server_ip}`, **CNAME** `www` / `ftp`
* **CAA** for Let's Encrypt (issue / issuewild / iodef)
* **A** `mail` → `{mail_server_ip}`, **CNAME** `webmail`, **MX** `@`
* **TXT** SPF, DMARC, DKIM (`mail._domainkey` → `{domainkey}`), TLS‑RPT
* **MTA‑STS** (`mta-sts` CNAME + `_mta-sts` TXT), **autodiscover/autoconfig**

> A record that references an empty placeholder (e.g. `{domainkey}` when DKIM isn't ready) is simply skipped — so partial state never produces broken records.


<!-- sync:e4f8ca04d128c0d8 -->