To install PowerDNS on Debian/Ubuntu, follow these steps:
sudo apt-get update
sudo apt-get 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
Start the PowerDNS service:
sudo systemctl start pdns
sudo systemctl status pdns
That’s it! You should now have a working PowerDNS installation on your Debian/Ubuntu system.