PDNS Gui is an open source graphical user interface designed for PowerDNS, which is a DNS server that runs on Unix-like operating systems. This tutorial will guide you through the process of installing PDNS Gui on your Elementary OS Latest system.
Before getting started with the installation, make sure that you have the following prerequisites:
First, we need to install PowerDNS on our system. PowerDNS can be installed using the following command:
sudo apt install pdns-server
Once the installation is done, you can start the PowerDNS service using the following command:
sudo systemctl start pdns
PDNS Gui requires some additional dependencies to work properly. Use the following command to install them:
sudo apt install git python3-pip python3-setuptools python3-wheel python3-dev libpq-dev
Now we need to download the PDNS Gui source code from GitHub. You can use the following command to clone the repository:
git clone https://github.com/odoucet/pdns-gui.git
Once the download is complete, navigate to the cloned directory using the following command:
cd pdns-gui
PDNS Gui requires some Python dependencies, which can be installed using the following command:
sudo pip3 install -r requirements.txt
PDNS Gui requires a PostgreSQL database to store its data. You need to create a database and a user for PDNS Gui to access it. Use the following commands to achieve this:
sudo -u postgres psql -c "CREATE USER pdnsgui WITH PASSWORD 'pdnsgui';"
sudo -u postgres psql -c "CREATE DATABASE pdnsgui WITH OWNER pdnsgui;"
PDNS Gui has a configuration file named config.py
, which needs to be updated with the database credentials. Use the following command to edit the file:
sudo nano config.py
Update the following lines in the configuration file with the appropriate values:
SQLALCHEMY_DATABASE_URI = 'postgresql://pdnsgui:pdnsgui@localhost/pdnsgui'
SECRET_KEY = 'your_secret_key_here'
Save and close the file.
We need to initialize the database with the required tables. Use the following command to do so:
sudo python3 manage.py init
Finally, we can start the PDNS Gui server using the following command:
sudo python3 manage.py runserver
You can now access PDNS Gui by navigating to http://localhost:5000 in your web browser.
In this tutorial, we have learned how to install PDNS Gui on Elementary OS Latest. With PDNS Gui, you can easily manage PowerDNS from a graphical user interface.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!