How To Install pdns on CentOS 8

pdns is A modern, advanced and high performance authoritative-only nameserver

Introduction

In this tutorial we learn how to install pdns on CentOS 8.

What is pdns

The PowerDNS Nameserver is a modern, advanced and high performance authoritative-only nameserver. It is written from scratch and conforms to all relevant DNS standards documents. Furthermore, PowerDNS interfaces with almost any database.

We can use yum or dnf to install pdns on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install pdns.

Install pdns on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install pdns using dnf by running the following command:

sudo dnf -y install pdns

Install pdns on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install pdns using yum by running the following command:

sudo yum -y install pdns

How To Uninstall pdns on CentOS 8

To uninstall only the pdns package we can use the following command:

sudo dnf remove pdns

pdns Package Contents on CentOS 8

/etc/pdns
/etc/pdns/pdns.conf
/usr/bin/pdns_control
/usr/bin/pdns_zone2ldap
/usr/bin/pdnsutil
/usr/bin/zone2json
/usr/bin/zone2sql
/usr/lib/.build-id
/usr/lib/.build-id/75
/usr/lib/.build-id/75/9bedc4eba116e41501f580fcf2a240c44644a9
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/5ef109d24eb08bc528f15bd4690e2022d56d97
/usr/lib/.build-id/84
/usr/lib/.build-id/84/043ebc578ee1a68fb77436ee27b7086704bbb6
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/4206c93c3ae4bed50308047e6e1ff30f55de99
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/9608b647e76cda8505d6e44d76140c45a27e84
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/2d82649c1a1e88e815ccdab1af540b82ea653a
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/e7f1e1c09e35e0f4e19c0305b30db2148bee6b
/usr/lib/systemd/system/pdns.service
/usr/lib/systemd/system/[email protected]
/usr/lib64/pdns
/usr/lib64/pdns/libbindbackend.so
/usr/sbin/pdns_server
/usr/share/doc/pdns
/usr/share/doc/pdns/README
/usr/share/licenses/pdns
/usr/share/licenses/pdns/COPYING
/usr/share/man/man1/pdns_control.1.gz
/usr/share/man/man1/pdns_server.1.gz
/usr/share/man/man1/pdns_zone2ldap.1.gz
/usr/share/man/man1/pdnsutil.1.gz
/usr/share/man/man1/zone2json.1.gz
/usr/share/man/man1/zone2sql.1.gz

References

Summary

In this tutorial we learn how to install pdns on CentOS 8 using yum and dnf.