Comments on How to Install PowerDNS Server and PowerDNS Admin on Ubuntu 20.04

PowerDNS is a free and open-source authoritative nameserver. PowerDNS Admin is a web-based tool used for managing PowerDNS. You can create and manage DNS zones using the web browser. In this tutorial, we will show you how to install PowerDNS and PowerDNS admin on Ubuntu 20.04 server.

10 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: TiTex

H Hitesh , thank you for the step by step install guide.

Do you know by any chance if this will allow setting up pdns in HA mode ? , like having two servers connected to the same database

By: Sohaib

Hello i could not open my URL as http://pdnsadmin.example.com 

it says access denied any suggestions ?

By: Kindy

Thanks. setup completed. 

i ask setup ssl LET http://pdnsadmin.example.com   to https://pdnsadmin.example.com 

 

By: Johnny

Holy crap, followed line-for-line this thing works amazing. Probably the only step-by-step guide for PDNS+PDNSA that I've ever found. This thing is a beast! And you, good sir, are amazing. Thank you!

By: Jan

Thank you.

Works perfectly.

By: stratmech

This is a great how-to, thanks so much for posting. I had to sort out some of the IP stuff but got it working. Thank you.

By: Ponch

Once installed and functioning as should, then what's the preferred way to update?

By: M. Deacu

@TiTexHi !You can setup a second powerdns server following this tutorial and setup an mysql master/slave replication between main server and secondary server

By: Matthew

Thank you, works perfect on Debian 11 Bullseye as well.

One extra step users may want to do is disable the "Create an account" link on the PowerDNS Admin Login page once you have created your account to stop random people creating users.

Edit the file - /var/www/html/pdns/powerdnsadmin/templates/login.html

On line approx 127 add "<!--" to the beginning or the line and "--!>" to the end to comment out the line. You are changing line fromCreate an account

TO

<!-- Create an account --!>

Save and exit the file and then restart the service pdnsadmin - systemctl restart pdnsadmin

The "Create an account" link should now be hidden from the login page.

Thanks

 

Matthew

By: PDNS_User

Thank you for this awesome and extensive tutorial. As of 12/21, there is a minor issue with the location of the mysql schema file in the pdns backend. Maybe locations have changed in current version?

In any case, for future reference, the schema file is no longer stored at /usr/share/pdns-backend-mysql/schema/schema.mysql.sql. You will find it is now located at /usr/share/doc/pdns-backend-mysql/schema.mysql.sql.

The corrected command from the Configure PowerDNS steps above, should now read:

mysql -u pdnsadmin -p pdns < /usr/share/doc/pdns-backend-mysql/schema.mysql.sql