PD Cloudflare DNS for WHMCS

PD Cloudflare DNS — Cloudflare Zone & Record Management for WHMCS

Manage your Cloudflare DNS zones and records inside WHMCS — fast, self-service, auto-provisioned

Made and supported by Projektif Digital Ltd. Runs inside PD Modules, the panel every module installs into.

Domains & DNS

PD Cloudflare DNS lets a hosting company give its customers self-service DNS on Cloudflare from inside WHMCS. A zone is created in your Cloudflare account when a domain is registered, your customer edits its records in your client area under your brand, and your team manages every zone from one list without handing out Cloudflare logins. It works on every Cloudflare plan, the Free plan included.

It is built for hosts and registrars who use Cloudflare for their customers' DNS and want it sold, supported and billed through WHMCS rather than through the Cloudflare dashboard.

Why hosts choose PD Cloudflare DNS

Customers never need a Cloudflare account. Their DNS pages carry your name and your theme, and never mention Cloudflare. Your API token stays on your WHMCS server and never reaches a customer's page.

Every Cloudflare plan works. The module needs only an API token, so it runs on the Free plan as well as paid ones. You pay Cloudflare whatever you pay it today and PD Cloudflare DNS adds no per-zone fee.

Zones appear without importing anything. Add your token and every zone it can see is listed straight away, read live from Cloudflare. If the token is limited to certain zones, only those appear, and widening it to all zones shows the rest after a re-test.

Cloudflare's own features, inside WHMCS. A record can be routed through Cloudflare's proxy with a toggle in the editor, for you and for your customers. Purge cache clears a zone's edge cache from the zone menu. Website and email forwarding work for domains that have no hosting.

Least-privilege tokens, with honest errors. A token with Zone Read and DNS Edit manages the records of existing zones. Creating zones, purging cache, forwarding and deleting a zone each need one extra permission, and without it only that action is refused, with a message that says so. Everything else keeps working.

DNS that sets itself up. With auto-provision on, a zone is created at Cloudflare when a domain is registered or transferred, or a service with a domain is set up. For extensions you choose, the module also points the domain's nameservers at Cloudflare through your registrar module.

How it works

  1. Create a token. In Cloudflare, create an API token from the Edit zone DNS template and, if you want the extra features, add the permissions for them. The account id is optional and only matters when one token covers more than one Cloudflare account.
  2. Connect it. Add the token under Providers and press Test connection. Your zones load immediately.
  3. Choose how zones are created. Switch on auto-provision, choose which extensions use Cloudflare for DNS, or create zones by hand.
  4. Your customers manage the rest. They edit records, turn on DNSSEC and take backups from your client area.

What you get in WHMCS

Zones and records

  • A live Zones list with search and filters by status, tracking state and client, each zone showing its client, nameservers, health, sync and DNSSEC state and last backup
  • A type-aware record editor that shows only the fields a record type needs and checks addresses and hostnames before anything is sent to Cloudflare
  • A Proxied toggle on A, AAAA and CNAME records
  • DNSSEC switched on per zone with one button, with the DS record shown ready to copy for the registrar
  • The TTL you enter is what Cloudflare stores, raised to its minimum where it has one
  • Import a BIND file with a preview of how many records it will add, and export any zone as a BIND file
  • Record templates with merge fields such as {domain} and {ip}, applied to a zone in one click
  • Purge cache from a zone's menu
  • Reverse DNS ranges and bulk record changes across many zones

Forwarding

  • Website forwards with 301 or 302 redirects, www, all-subdomain and keep-the-path options, and email forwards with a catch-all, for domains that have no hosting
  • A warning before a forward overrides a host that already has active hosting or a record in real use
  • The records a forward relies on are protected from edits and deletes, so changing the forward is how they change

Selling and controlling DNS

  • Quota packages that cap zones per customer and records per zone, and per record type, linked to the WHMCS products you sell
  • Content policies: blocked patterns and allow and deny lists for the addresses a customer's A and AAAA records may point at, for customer saves only, never your own changes
  • A zone can be locked against customer edits while you work on it, and domain-only customers can be set to full editing, view only or hidden
  • Scheduled backups every 24 hours by default, keeping the newest ten per zone, with restore and a Recover zone for one deleted by mistake
  • A scoped REST API with read and write tokens, limited by source address and rate limited, with every write logged

What your customers get

  • A DNS area in your client portal with records, DNSSEC, import and export, forwarding and backups, reached by sidebar links, tabs or both
  • The proxy toggle on their own A, AAAA and CNAME records
  • Quick set-ups for Google Workspace, Microsoft 365 or an SPF lockdown that never change an existing record and never add a second SPF record
  • Self-service backups and restores, with a safety snapshot taken first
  • Only their own zones. Another account's zone cannot be reached, even by guessing an ID

A Manage DNS link appears on a client's domain and service pages when that domain has a zone, and you choose whether it replaces the registrar's DNS link or sits beside it. Pages render natively on WHMCS's Six, Twenty-One and Nexus themes, every string is translatable and your wording overrides survive updates.

Security built in

  • Your Cloudflare token is stored encrypted in your WHMCS database and never shown back in the form.
  • The token is used only to read and update zones and records in your account.
  • Customers never see Cloudflare's name or your token.
  • API tokens are shown once and stored only as a hash.

One product, every feature

PD Cloudflare DNS is one paid module with every feature included and no per-zone fee. It activates from your PD Modules subscription with no key to paste, adds its own tables and modifies no WHMCS files.

If your subscription lapses, your DNS records are never touched and Cloudflare keeps serving every zone. Admin management locks first while customers keep their self-service, and customer management stops later behind a neutral message. Renewing restores everything.

Requirements

  • WHMCS 9 or later on PHP 8.2 or later, with the ionCube Loader
  • A Cloudflare account, on any plan, and an API token
  • PD Modules, the free control panel every PD module installs into

Questions

Does PD Cloudflare DNS store my DNS records?

No. PD Cloudflare DNS reads records live from Cloudflare and writes changes back immediately over the API. Cloudflare remains the authoritative source of truth. The module stores only metadata — zone ownership, backup snapshots and activity logs — in your WHMCS database.

How do I connect Cloudflare?

Create a scoped API token in Cloudflare under My Profile → API Tokens starting from the 'Edit zone DNS' template (Zone:Read + DNS:Edit), then paste it into the Providers panel. The token is stored encrypted and masked in the form. There is nothing to install on a server — Cloudflare is a hosted API.

What permissions does the API token need?

Zone:Read and DNS:Edit on the zones you want to manage — enough to list them and read and write their records. Creating zones from the module additionally needs Account → Zone → Create. The optional Account ID field only matters if one token spans more than one Cloudflare account. Scoped tokens can be rotated or revoked in Cloudflare without touching your account password.

Can I connect more than one Cloudflare account?

Yes. Add multiple providers in the Providers panel — one per API token. You can manage zones from all of them through the same interface.

Does deleting a zone in WHMCS delete it from Cloudflare?

Yes, if you delete it: **Delete zone** in a zone's ⋯ menu deletes the zone and all its records at Cloudflare, after you confirm. Nothing else deletes a zone at Cloudflare unless you choose it: removing a provider, cleaning up an orphan and terminating a service all leave the zone in place, unless you turn on **When cleaning an orphan, also delete the zone at the provider** or turn off **Keep the DNS zone when a service is terminated**.

What record types are supported?

A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR, TLSA, SSHFP, NAPTR and DS, each with a type-aware editor that checks addresses and hostnames before saving. Cloudflare accepts a DS record only when it can match it to a key it holds; otherwise it refuses the record and the module shows Cloudflare's message.

Is DNSSEC supported?

Yes. DNSSEC can be enabled or disabled per zone directly from the panel. When enabled, PD Cloudflare DNS shows the DS record and DNSKEY details in a copy-ready block to hand to the registrar.

What happens to zones if my subscription lapses?

DNS records are never touched on lapse — your zones and records stay exactly as they are and keep being served. Management steps down in stages: admin management locks first while your customers keep their own DNS self-service, which stops only later, behind a neutral 'temporarily unavailable' message. Renewing restores everything.

Can I auto-create zones when domains are registered?

Yes. Enable 'Automatically create a DNS zone on registration and new services' in Settings. A zone is created when a domain is registered or transferred, or a service with a domain is set up. Separately, the TLD takeover list on your provider names the extensions whose nameservers are also pointed at Cloudflare when such a domain is registered or transferred (registrar modules that support nameserver changes).

What does it cost to run, on top of the subscription?

Only what you already pay your provider. PD Cloudflare DNS adds no per-unit fee and takes no cut — it connects to your own account with your own credentials, so the provider bills you directly at your rates, and you set what you charge your customers. From us it is the module subscription and nothing else.

Which WHMCS and PHP versions does it need?

WHMCS 9 or later, on PHP 8.2 or later. It installs alongside whatever else you run — it adds its own tables and templates rather than modifying WHMCS files, so it does not collide with other vendors' modules or with a customised theme. Uninstalling removes its own tables and settings and leaves no orphans behind.

What’s new in 0.1.107

  • Turning on email forwarding now asks you to confirm whenever the domain's current mail setup can't be checked, so a domain whose email is hosted elsewhere is never switched over without a warning.

Get your website online with PD Hosting

UK hosting, domains and support from a real team. From a first site to a full server.

Terms and Conditions  ·  Privacy Policy

PD Hosting is the trading name of Projektif Digital Ltd, registered in England and Wales, company number 12482555.

PD Hosting
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.