# Client Area

How the customer manages their DNS service: the home screen with the zone list and quota, adding a DNS zone, managing records of every supported type, and working with reverse-DNS (PTR) zones for IPv4 and IPv6.

# Home screen

### PowerDNS module **[WHMCS](https://puqcloud.com/link.php?id=77)**
##### [Order now](https://puqcloud.com/whmcs-module-powerdns.php) | [Download](https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-PowerDNS/) | [Community](https://community.puqcloud.com/)

When a client navigates to **Client Area** → **Services** → **My Services** and selects their DNS Hosting service, the dashboard presents the primary zone management interface.

![Client Area — DNS Zones Dashboard](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-wahrdlfh.png)
*client-overview.png*

---

## 1. Summary Cards

The top overview section provides real-time status metrics and configuration parameters:

- **Zones Quota Card**: Displays current utilization against the service quota (e.g., `1 / 10` or `Unlimited`). If the allocated limit is reached, the **Add DNS Zone** action informs the client that the quota has been met.
- **Name Servers Card**: Displays the authoritative name servers (e.g., `ns1.puq.info`, `ns2.puq.info`) assigned by the hosting provider. Clients must configure these exact name servers at their domain registrar for DNS propagation.

---

## 2. DNS Zones Table

The main section lists all DNS zones provisioned under this service:

| Column | Description |
|--------|-------------|
| **Zone Name** | The root domain name of the zone (e.g., `puq.info`). |
| **Status** | Current operational state: `Active` (green badge, active on server), `Suspended` (yellow badge, server zone purged due to billing suspension), or `Not Allowed` (red badge, conflict detected). |
| **Actions** | Action controls available for each individual zone. |

### Available Zone Actions:
- **Records**: Opens the zone inspector to manage resource records. Displays an inline counter badge showing the number of active records.
- **Delete (Trash Icon)**: Removes the zone completely. Opens a SweetAlert confirmation modal before purging the zone from both PowerDNS and WHMCS. All actions feature dynamic button spinners while executing.

---

## 3. Real-Time Search & Add Zone

- **Search**: A live search field above the table allows clients to filter zones instantly as they type.
- **Add DNS Zone Button**: Located in the top action bar, opens the zone creation modal (see *Add DNS Zone*).


<!-- sync:e5d0b3cc08da3149 -->

# Add DNS Zone

### PowerDNS module **[WHMCS](https://puqcloud.com/link.php?id=77)**
##### [Order now](https://puqcloud.com/whmcs-module-powerdns.php) | [Download](https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-PowerDNS/) | [Community](https://community.puqcloud.com/)

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](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-imgczirj.png)
*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

- **Maximum zone limit reached**: The service has reached its assigned zone capacity.
- **DNS Zone name is NOT valid**: The entered string does not match standard domain or in-addr.arpa syntax.
- **DNS Zone name NOT allowed**: The requested domain matches an administrative regex blacklist pattern.
- **Problem adding DNS zone**: If the zone already exists on the PowerDNS server under another service, the module avoids exposing raw database errors. It flags the request as **not allowed** and raises an automated internal To-Do task for hosting staff.


<!-- sync:a79007f07b8628b8 -->

# Managing DNS Records

### PowerDNS module **[WHMCS](https://puqcloud.com/link.php?id=77)**
##### [Order now](https://puqcloud.com/whmcs-module-powerdns.php) | [Download](https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-PowerDNS/) | [Community](https://community.puqcloud.com/)

Click the **Records** button next to any active zone to access the DNS Records management console.

---

## 1. Zone Details & Toolbar

The zone view displays zone metadata, Start of Authority (SOA) details, and quick action buttons:

- **All DNS Zones**: Returns to the main service overview.
- **Reload DNS Zone**: Synchronizes and rebuilds zone records directly from the PowerDNS server.
- **Add Record**: Opens the dynamic modal to create a new DNS record.
- **SOA Summary Card**: Displays the primary MNAME server, administrative email (RNAME), and serial number. If permitted by the provider, an **Edit SOA** button allows clients to modify contact email and TTL parameters.

![Client Zone Details & Toolbar](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-qdfqpbva.png)
*client-zone-details.png*

---

## 2. Resource Records Table & Quick Filters

Below the zone header, the console presents the resource records in a responsive table.

### Interactive Quick-Filter Pills:
Above the table, interactive badge pills allow instant filtering by record type (e.g. **All**, **A**, **AAAA**, **CNAME**, **MX**, **TXT**, etc.).
- When the hosting provider restricts allowed record types, only the permitted record type pills are displayed.
- Clicking any pill immediately filters the table view without triggering network calls or page reloads.

![Client Records Table — All Types](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-aasxetft.png)
*client-records-table.png*

### Filtered Records View Examples:

![Client Records Filter — A Records](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-ukvbrqvw.png)
*client-records-filter-a.png*

![Client Records Filter — AAAA Records](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-cyioit7p.png)
*client-records-filter-aaaa.png*

---

## 3. Supported Record Types

The module supports 38 DNS record types. The modal dynamically adapts input fields and validation according to the selected type:

| Type | Description & Specific Fields |
|------|------------------------------|
| **A** | Host IPv4 address (e.g. `192.0.2.1`). |
| **AAAA** | Host IPv6 address (e.g. `2001:db8::1`). |
| **AFSDB** | AFS Data Base location record (Subtype and Target hostname). |
| **ALIAS** | Auto-resolved apex or subdomain alias (CNAME-flattening) to target hostname. |
| **CAA** | Certification Authority Authorization (Flags `0`–`255`, Tag `issue`/`issuewild`/`iodef`, Value). |
| **CERT** | Certificate record (Certificate Type, Key Tag, Algorithm, Base64 Certificate). |
| **CDNSKEY** | Child DNSKEY record for automated DS updates (Flags, Protocol, Algorithm, Public Key). |
| **CDS** | Child DS record for automated parent zone DS updates (Key Tag, Algorithm, Digest Type, Digest). |
| **CNAME** | Canonical name alias pointing to target hostname. |
| **DNSKEY** | DNSSEC public key (Flags, Protocol `3`, Algorithm, Public Key). |
| **DNAME** | Delegation name redirecting an entire subtree of the domain hierarchy. |
| **DS** | Delegation Signer record (Key Tag, Algorithm, Digest Type, Digest). |
| **HINFO** | Host Information record (Hardware and OS / Software strings). |
| **HTTPS** | HTTPS service binding and parameter endpoints (Priority, Target Name, Params `key=value`). |
| **KEY** | Security public key record (Flags, Protocol, Algorithm, Public Key). |
| **LOC** | Geographic location coordinates (RFC 1876 location string). |
| **LUA** | PowerDNS dynamic LUA record (Target Type and LUA Script). |
| **MX** | Mail exchange server (Priority integer and Target mail hostname). |
| **NAPTR** | Naming Authority Pointer (Order, Preference, Flags, Service, Regexp, Replacement). |
| **NS** | Authoritative Name Server target hostname (Provider NS records are protected from deletion). |
| **NSEC** | DNSSEC Next Secure record (Next Domain Name and Record Types bitmap). |
| **NSEC3** | DNSSEC Next Secure v3 record (Hash Algorithm, Flags, Iterations, Salt, Next Hashed Owner Name, Types). |
| **NSEC3PARAM** | DNSSEC NSEC3 Parameters record (Hash Algorithm, Flags, Iterations, Salt). |
| **OPENPGPKEY** | OpenPGP public key record (Base64-encoded public key data). |
| **PTR** | Pointer record for reverse DNS mapping. |
| **RP** | Responsible Person mailbox and TXT domain pointer. |
| **RRSIG** | DNSSEC resource record signature (Type Covered, Algorithm, Labels, Original TTL, Expiration, Inception, Key Tag, Signer Name, Signature). |
| **SMIMEA** | S/MIME certificate association record (Usage, Selector, Matching Type, Certificate Association Data). |
| **SOA** | Start of Authority (Managed via provider defaults or Edit SOA modal). |
| **SPF** | Sender Policy Framework record. |
| **SRV** | Service record (Priority, Weight, Port, Target hostname). |
| **SSHFP** | SSH public host key fingerprint (Algorithm, Fingerprint Type, Hexadecimal Fingerprint). |
| **SVCB** | General Service Binding record (Priority, Target Name, Params `key=value`). |
| **TKEY** | Transaction Key record (RFC 3597 generic RDATA / hex payload). |
| **TLSA** | Transport Layer Security Authentication (Usage, Selector, Matching Type, Certificate Association Data). |
| **TSIG** | Transaction Signature record. |
| **TXT** | Text record (String content; automatically quoted and split into 255-byte chunks). |
| **URI** | Uniform Resource Identifier mapping (Priority, Weight, Target URI). |

---

## 4. Add DNS Record

1. Click the **Add Record** button.
2. Select the **Type** from the dropdown menu.
   - If the hosting provider has configured **Allowed record types**, only those specific record types appear in the dropdown.
   - If no restriction is configured, all 38 record types are available.
3. Enter the record **Name** (use `@` for root domain apex, or enter subdomains like `www`, `api`, `mail`).
4. Select the **TTL** (from 60 seconds up to 1 day).
5. Enter the type-specific data values.
6. Click **Add Record**. A loading spinner indicates active processing. Upon success, the table updates immediately.

### Full Record Types Dropdown:
![Add Record Modal — All 24 Types](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-gm7e9eno.png)
*client-add-record-all-types.png*

### Restricted Allowed Record Types Dropdown:
When the administrator restricts allowed record types to e.g. `A, AAAA, CNAME, MX, TXT`:
![Add Record Modal — Filtered Types](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-c0xo7l3c.png)
*client-add-record-filtered-types.png*

### ALIAS Record Addition:
![Add Record Modal — ALIAS](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-wwii0da2.png)
*client-add-record-alias.png*

---

## 5. Edit and Delete Records

### Edit Record:
Click the **Pencil icon** on any record row. The edit modal appears pre-populated with current values:
- Record Type and Name are locked to prevent accidental DNS orphan references.
- TTL and record content values can be adjusted and saved instantly.

![Client Edit Record Modal](https://doc.puq.info/uploads/images/gallery/2026-11/embedded-image-jildfkaa.png)
*client-edit-record.png*

### Delete Record:
Click the **Trash icon** on any record row. A confirmation dialog prevents accidental deletion. Once confirmed, the record is removed from the PowerDNS server and table immediately.

> ℹ️ **Notice:** Provider root NS records (at the zone apex) are protected with a lock icon and cannot be edited or deleted by clients. Subdomain NS records (e.g. `sub.example.com`) can be added, modified, and deleted freely.


<!-- sync:c9c66e1737c46c9f -->

# PTR IPv4 and IPv6

### PowerDNS module **[WHMCS](https://puqcloud.com/link.php?id=77)**
##### [Order now](https://puqcloud.com/whmcs-module-powerdns.php) | [Download](https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-PowerDNS/) | [Community](https://community.puqcloud.com/)

Pointer (**PTR**) resource records provide Reverse DNS resolution — translating an IP address back into a canonical fully qualified domain name (FQDN). PTR records are critical for email deliverability (SPF/DKIM/rDNS checks) and network diagnostic logging.
---

## 1. Understanding Reverse DNS Zones

Reverse DNS lookups query specialized reverse zone domains determined by the network subnet:

- **IPv4 Reverse Zones (`in-addr.arpa`)**: Constructed by reversing the octets of the network IP block and appending `.in-addr.arpa`.  
  *Example*: For subnet `203.0.113.0/24`, the reverse zone is `113.0.203.in-addr.arpa`.
- **IPv6 Reverse Zones (`ip6.arpa`)**: Constructed by reversing each individual hexadecimal nibble (4 bits) separated by dots and appending `.ip6.arpa`.  
  *Example*: For `2001:db8::/32`, the reverse zone is `8.b.d.0.1.0.0.2.ip6.arpa`.

---

## 2. Setting Up a Reverse Zone

1. Ensure your upstream transit provider or IP registrar (RIPE, ARIN, APNIC) has delegated the corresponding reverse DNS subnet to your PowerDNS name servers.
2. In the WHMCS client area, click **Add DNS Zone**.
3. In **Zone Name**, enter the reverse zone domain (e.g., `113.0.203.in-addr.arpa`).
4. Click **Add DNS Zone**. The zone is created on the server as an authoritative master zone.

---

## 3. Adding PTR Records

1. Open the reverse zone by clicking **Records**.
2. Click **Add Record** and select **Type**: `PTR`.
3. Fill in the parameters:
   - **Name**: The host identifier within the reverse zone:
     - For IPv4 host `203.0.113.10` inside zone `113.0.203.in-addr.arpa`, enter `10`.
     - For IPv6 host `2001:db8::1` inside zone `8.b.d.0.1.0.0.2.ip6.arpa`, enter the reversed host nibble sequence.
   - **TTL**: Choose a cache lifetime (e.g., `3600`).
   - **Domain Name**: The fully-qualified target domain name (e.g., `mail.example.com`).
4. Click **Add Record**. The module automatically appends trailing dots as needed.

---

## 4. Verification

Test your reverse DNS propagation using `dig` or `host`:

```bash
# Test IPv4 PTR Record
dig -x 203.0.113.10 +short

# Test IPv6 PTR Record
dig -x 2001:db8::1 +short
```

The output should return your target FQDN.


<!-- sync:e4b0f8d848f8404c -->

