How To Install unbound on Fedora 34

unbound is Validating, recursive, and caching DNS(SEC) resolver

Introduction

In this tutorial we learn how to install unbound on Fedora 34.

What is unbound

Unbound is a validating, recursive, and caching DNS(SEC) resolver. The C implementation of Unbound is developed and maintained by NLnet Labs. It is based on ideas and algorithms taken from a java prototype developed by Verisign labs, Nominet, Kirei and ep.net. Unbound is designed as a set of modular components, so that also DNSSEC (secure DNS) validation and stub-resolvers (that do not run as a server, but are linked into an application) are easily possible.

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

Install unbound on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install unbound

Install unbound on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install unbound

How To Uninstall unbound on Fedora 34

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

sudo dnf remove unbound

unbound Package Contents on Fedora 34

/etc/sysconfig/unbound
/etc/unbound/conf.d
/etc/unbound/conf.d/example.com.conf
/etc/unbound/keys.d
/etc/unbound/keys.d/example.com.key
/etc/unbound/local.d
/etc/unbound/local.d/block-example.com.conf
/etc/unbound/unbound.conf
/etc/unbound/unbound_control.key
/etc/unbound/unbound_control.pem
/etc/unbound/unbound_server.key
/etc/unbound/unbound_server.pem
/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/187cb19d5044c7f0a3531dcd760917d4f79731
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/8c542b85fefa05012b8a905da4234b958a4538
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/4580a1bfc732137b1aa2b68b0e849e0bc1febd
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/22c3780d34446c559b99e5e9eb3c53a4db4ba1
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/592cad1bf2d82e719c103ef44f6f3a2a9ed9f1
/usr/lib/systemd/system/unbound-keygen.service
/usr/lib/systemd/system/unbound.service
/usr/lib/tmpfiles.d/unbound.conf
/usr/sbin/unbound
/usr/sbin/unbound-checkconf
/usr/sbin/unbound-control
/usr/sbin/unbound-control-setup
/usr/sbin/unbound-host
/usr/sbin/unbound-streamtcp
/usr/share/doc/unbound
/usr/share/doc/unbound/CREDITS
/usr/share/doc/unbound/FEATURES
/usr/share/man/man1/unbound-host.1.gz
/usr/share/man/man1/unbound-streamtcp.1.gz
/usr/share/man/man5/unbound.conf.5.gz
/usr/share/man/man8/unbound-checkconf.8.gz
/usr/share/man/man8/unbound-control-setup.8.gz
/usr/share/man/man8/unbound-control.8.gz
/usr/share/man/man8/unbound.8.gz
/var/run/unbound

References

Summary

In this tutorial we learn how to install unbound on Fedora 34 using yum and dnf.