How To Install pdns-recursor on Rocky Linux 8

In this tutorial we learn how to install pdns-recursor on Rocky Linux 8. pdns-recursor is Modern, advanced and high performance recursing/non authoritative name server

Introduction

In this tutorial we learn how to install pdns-recursor on Rocky Linux 8.

What is pdns-recursor

PowerDNS Recursor is a non authoritative/recursing DNS server. Use this package if you need a dns cache for your network.

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

Install pdns-recursor on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install pdns-recursor

Install pdns-recursor on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install pdns-recursor

How To Uninstall pdns-recursor on Rocky Linux 8

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

sudo dnf remove pdns-recursor

pdns-recursor Package Contents on Rocky Linux 8

/etc/pdns-recursor
/etc/pdns-recursor/recursor.conf
/usr/bin/rec_control
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/cf6fb9208f6e60219ffe738c63e7bd4f82fa0d
/usr/lib/.build-id/38
/usr/lib/.build-id/38/1d9dc4c1d81ccfad932c2ead5f9585d36a27b7
/usr/lib/systemd/system/pdns-recursor.service
/usr/lib/systemd/system/[email protected]
/usr/sbin/pdns_recursor
/usr/share/doc/pdns-recursor
/usr/share/doc/pdns-recursor/README
/usr/share/licenses/pdns-recursor
/usr/share/licenses/pdns-recursor/COPYING
/usr/share/man/man1/pdns_recursor.1.gz
/usr/share/man/man1/rec_control.1.gz
/var/lib/pdns-recursor
/var/lib/pdns-recursor/nod
/var/lib/pdns-recursor/udr

References

Summary

In this tutorial we learn how to install pdns-recursor on Rocky Linux 8 using yum and dnf.