To install PowerDNS on Debian 13 or Ubuntu, follow these steps:
Update the package list:
sudo apt update
Install the PowerDNS package:
sudo apt install pdns-server
Once the installation is complete, edit the configuration file located at /etc/powerdns/pdns.conf to suit your needs. Here are some common configurations:
Set the listening port to 53 (the default DNS port):
local-port=53
Set the backend to use MySQL:
launch=gmysql
gmysql-host=localhost
gmysql-user=pdns
gmysql-password=your_password_here
gmysql-dbname=pdns
Enable and start the PowerDNS service:
sudo systemctl enable --now pdns
Verify that PowerDNS is running:
sudo systemctl status pdns
PowerDNS recommends using their repository for the latest supported version. To install the Authoritative Server 5.0.x on RHEL 10:
sudo dnf install epel-release
sudo curl -o /etc/yum.repos.d/powerdns-auth-50.repo https://repo.powerdns.com/repo-files/el-auth-50.repo
sudo dnf install pdns
Enable and start the service:
sudo systemctl enable --now pdns
That’s it! You should now have a working PowerDNS installation.