PowerDNS is a popular open-source DNS server that is known for its high performance and scalability. In this article, we will look at how to install PowerDNS and PowerDNS-Admin on Rocky Linux.
The first step in installing PowerDNS is to add the PowerDNS repository to your system. This can be done by running the following commands in the terminal:
sudo dnf install lsb-release wget
echo "deb [arch=amd64] <https://repo.powerdns.com/ubuntu> $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/pdns.list
wget -O - <https://repo.powerdns.com/FD380FBB-pub.asc> | sudo dnf-config-manager --add-repo -
Next, update your system’s package list by running the following command:
sudo dnf update
Now you are ready to install PowerDNS. This can be done by running the following command:
sudo dnf install pdns pdns-backend-mysql
During the installation process, you will be prompted to configure the database for PowerDNS. Select the "Yes"
option and follow the prompts to set up the database.
Once the installation is complete, you can start the PowerDNS server by running the following command:
sudo systemctl start pdns
To make sure that the PowerDNS server starts automatically when your system boots up, you can enable it by running the following command:
sudo systemctl enable pdns
At this point, PowerDNS should be installed and running on your system. To verify that it is working correctly, you can use the dig
command to query the DNS server, as shown in the following example:
dig example.com @localhost
In addition to the PowerDNS server, you may also want to install PowerDNS-Admin, which is a web-based interface for managing PowerDNS. This can be done by running the following command:
sudo dnf install pdns-admin
Once installed, you can access the PowerDNS-Admin interface by visiting http://localhost:8081
in your web browser. You will be prompted to log in using the username and password that you set up during the installation process.
In conclusion, installing PowerDNS and PowerDNS-Admin on Rocky Linux is a simple process that involves adding the PowerDNS repository, installing the PowerDNS packages, and configuring the database. Once installed, you can use the dig
command to query the DNS server, and the PowerDNS-Admin interface to manage it.