Installing PDNS GUI on Ubuntu Server
This tutorial will guide you through the installation of PDNS GUI on Ubuntu Server. PDNS GUI is an open source web interface for the PowerDNS DNS server written in Python and Flask.
Prerequisites:
Before proceeding with the installation, you need the following:
- A machine running Ubuntu Server latest version
- Root or sudo access to the server
- Python 3.x installed
- pip3 package manager installed
Step 1: Install PowerDNS
First, we will install PowerDNS on our Ubuntu Server. Execute the following commands on your terminal:
sudo apt update
sudo apt-get install pdns-server
After installing, PDNS service will be started automatically.
Step 2: Install PDNS GUI
To install PDNS GUI on Ubuntu Server, follow these steps:
- Clone the PDNS GUI repository from Github:
git clone https://github.com/odoucet/pdns-gui.git
- Go to the cloned repository directory:
cd pdns-gui/
- Install the dependencies required for PDNS GUI:
pip3 install -r requirements.txt
- Set up the configuration file for PDNS GUI:
cp config.py.sample config.py
- Edit the config.py file with your preferred settings:
vim config.py
- Run the application:
python3 app.py
PDNS GUI will be available on http://localhost:5000/
If you want to access PDNS GUI from a remote machine, you need to allow traffic on port 5000. To do that, execute the following command:
sudo ufw allow 5000
That's it! You have successfully installed PDNS GUI on your Ubuntu Server.