PowerDNS is a DNS server application with a wide range of advanced features. It can be used as an authoritative name server or a recursive resolver. This tutorial will guide you through the process of installing PowerDNS on OpenSUSE Latest.
Before proceeding with the installation process, ensure that the following prerequisites are met:
Open a terminal window and run the following command to add the PowerDNS repository to your system:
sudo zypper ar -v https://repo.powerdns.com/repo-files/openSUSE_Leap_latest/suse/ PowerDNS
To install PowerDNS along with its dependencies, run the following command:
sudo zypper in pdns pdns-backend-mysql
This will install the PowerDNS server and the MySQL backend.
The configuration file for PowerDNS is located at /etc/pdns/pdns.conf
. You can edit the file using your preferred text editor. Here is an example configuration file:
launch=gmysql
gmysql-host=localhost
gmysql-user=pdns
gmysql-password=password
gmysql-dbname=pdns
setgid=pdns
setuid=pdns
This configuration file specifies that PowerDNS will use the MySQL backend to store its data. You will need to replace the values for gmysql-host
, gmysql-user
, gmysql-password
, and gmysql-dbname
to match your MySQL setup.
To start the PowerDNS server, run the following command:
sudo systemctl start pdns
To check if the server is running, run the following command:
sudo systemctl status pdns
If the server is running, you should see output similar to the following:
● pdns.service - PowerDNS
Loaded: loaded (/usr/lib/systemd/system/pdns.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-03 14:21:26 UTC; 4s ago
Main PID: 1321 (pdns_server)
Tasks: 4 (limit: 2359)
CGroup: /system.slice/pdns.service
└─1321 /usr/sbin/pdns_server --guardian=no --daemon=no
To test if PowerDNS is functioning correctly, you can use the dig
command. For example, to query for the A record of example.com
, run the following command:
dig example.com A @localhost
This should return output similar to the following:
;; QUESTION SECTION:
;example.com. IN A
;; ANSWER SECTION:
example.com. 86400 IN A 93.184.216.34
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon May 03 14:26:47 UTC 2021
;; MSG SIZE rcvd: 43
Congratulations! You have successfully installed and configured PowerDNS on OpenSUSE Latest. With this powerful DNS server application, you can now manage your DNS zones with ease.
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!