To configure PowerDNS on Debian/Ubuntu, follow these steps:
Edit the configuration file located at /etc/powerdns/pdns.conf
to suit your needs. Here are some common configurations:
Set the listening IP address to your server’s IP:
local-address=<your_server_ip>
Set the backend to use MySQL:
launch=gmysql
gmysql-host=localhost
gmysql-user=pdns
gmysql-password=your_password_here
gmysql-dbname=pdns
Enable DNSSEC support:
dnssec=on
Enable the web server:
webserver=yes
webserver-address=0.0.0.0
webserver-allow-from=0.0.0.0/0
Restart the PowerDNS service to apply the changes:
sudo systemctl restart pdns
http://<your_server_ip>:8081/
in your web browser. The default login credentials are admin
for the username and changeme
for the password.That’s it! You should now have a configured PowerDNS installation on your Debian/Ubuntu system. You can test the installation by querying the DNS server using dig
or nslookup
, or by using the PowerDNS web interface to manage your DNS zones.