PowerDNS Authoritative Server answers DNS queries for the domains whose records it hosts. On a cPanel server, WHM installs and manages its configuration; a standalone installation needs a separate configuration process.
Install PowerDNS through WHM
You need WHM administrator access. Record the existing nameserver configuration and arrange a maintenance window before changing a live DNS service.
- Log in to WHM.
- Open Service Configuration > Nameserver Selection.
- Select PowerDNS.
- Click Save and wait for the change to complete.
- Check that the server’s DNS service is running and existing zones still answer correctly.
cPanel’s implementation reads DNS zones from BIND files and stores DNSSEC information in SQLite. It does not require you to create a separate MySQL backend.
Standalone installation on CentOS
CentOS Linux 7 and 8 are retired. Do not use their old package installation instructions for a new production server. A supported CentOS Stream release requires packages and instructions that match that release.
For a standalone server, follow the PowerDNS installation documentation for your operating system. If you choose its MySQL/MariaDB backend, complete all of these tasks before starting the service:
- Install the authoritative server and matching backend package.
- Create a dedicated database and database user.
- Import the schema supplied with that PowerDNS version.
- Configure the backend connection and protect the file containing its credentials.
- Create the DNS zones and records you intend to serve.
- Start the service and test those zones.
Do not apply this standalone setup to a WHM-managed installation. PowerDNS Recursor is a separate product; installing the authoritative server does not set up a recursive resolver.
Test an authoritative zone
From a machine with dig installed, query a zone that this server hosts:
dig @127.0.0.1 example.com SOAReplace example.com with your zone name. Check the answer and authoritative flag. For public DNS, also test the server’s public address and confirm that both UDP and TCP port 53 and the domain’s nameserver delegation are configured correctly.