PowerDNS is a free and open-source DNS server software that uses a flexible backend architecture to allow for many different kinds of data sources and many kinds of queries. In this tutorial, we will guide you through the steps to install PowerDNS on Elementary OS Latest.
Before you start with the installation, you need to ensure that you have the following prerequisites:
Before starting the installation, let's ensure that our system is updated by running the following command:
sudo apt update && sudo apt upgrade -y
This command will update your system packages to the latest version.
PowerDNS requires some dependencies to be installed on your system. To install these dependencies, run the following command:
sudo apt install -y build-essential git pkg-config bison flex libboost-all-dev libtool libldap2-dev libyaml-dev liblua5.3-dev libsodium-dev
To install PowerDNS, we need to clone the PowerDNS Git repository to our system. To do so, run the following command:
git clone https://github.com/PowerDNS/pdns.git
This will clone the PowerDNS repository on your system.
After cloning the PowerDNS Git repository, we need to build and install it.
Navigate to the pdns repository that you just cloned by running the following command:
cd pdns
Next, run the following commands to build and install PowerDNS:
./bootstrap
./configure
make
sudo make install
This will install PowerDNS on your Elementary OS Latest system.
Now that you have installed PowerDNS on your system, we need to enable and start the service. To do so, run the following command:
sudo systemctl enable pdns.service
sudo systemctl start pdns.service
This will enable and start the PowerDNS service on your system.
To verify that the PowerDNS service is running and working properly, you can check the service status by running the following command:
sudo systemctl status pdns.service
If the service is running without any issues, you will see the output as follows:
● pdns.service - PowerDNS Authoritative Server
Loaded: loaded (/lib/systemd/system/pdns.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-11-21 07:37:35 UTC; 6min ago
Process: 7485 ExecStart=/usr/local/sbin/pdns_server --daemon=no --guardian=no --write-pid=no --socket-dir=/run/powerdns --launch=gmysql --config-name=pdns (code=exited, status=0/SUCC
Main PID: 7496 (pdns_server)
Tasks: 9 (limit: 2332)
Memory: 21.6M
CGroup: /system.slice/pdns.service
└─7496 /usr/local/sbin/pdns_server --daemon=no --guardian=no --write-pid=no --socket-dir=/run/powerdns --launch=gmysql --config-name=pdns
Congratulations! You have successfully installed PowerDNS on your Elementary OS Latest system.
This tutorial covered the installation of PowerDNS on Elementary OS Latest. With PowerDNS installed and running, you are now able to set up and manage your own DNS server on your system. If you have any questions or need further assistance, feel free to ask for help.
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!