PUQ Mautic

Add DNS Zone

PowerDNS module WHMCS

Order now | Download | Community

Clients can add new forward or reverse DNS zones as long as their service has remaining quota.


1. How to Add a Zone

  1. On the service overview page, click the Add DNS Zone button.
  2. In the modal dialog:
    • Zone Name: Enter the domain name (e.g., puq.info or 113.0.203.in-addr.arpa for reverse DNS).
    • Zone Admin Email: If the hosting provider enables SOA editing, clients can enter a custom administrative contact email. Otherwise, this field is hidden and provider defaults are used.
  3. Click Add DNS Zone.

Add DNS Zone Dialog client-add-dns-zone.png


2. Automated Zone Provisioning Workflow

When the client clicks Add DNS Zone:

  1. Quota Check: WHMCS verifies that the client has not exceeded their service's maximum zone limit.
  2. Regex Validation: The domain name is verified for syntax compliance and checked against the provider's Zone name filter blacklist.
  3. PowerDNS Creation: The module sends a POST /api/v1/servers/localhost/zones request to PowerDNS:
    • Zone is created as Master with SOA-EDIT-API = INCREASE.
    • The SOA record is built using provider defaults and the client's email (if provided).
    • NS records are automatically inserted for all configured name servers.
    • Any boilerplate records defined in the provider's Zone template are generated with the {zone} placeholder substituted.
  4. Local Database Synchronization: WHMCS stores the zone record in puqPowerDNS_zones with status active.
  5. The modal closes and the dashboard updates automatically with a success toast notification.

3. Validation and Error Handling


Revision #5
Created 1 September 2024 11:16:27 by Ruslan
Updated 17 November 2026 20:06:35 by Ruslan