How To Install bind on Fedora 34

bind is The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server

Introduction

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

What is bind

BIND (Berkeley Internet Name Domain) is an implementation of the DNS (Domain Name System) protocols. BIND includes a DNS server (named), which resolves host names to IP addresses; a resolver library (routines for applications to use when interfacing with DNS); and tools for verifying that the DNS server is operating properly.

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

Install bind 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 bind using dnf by running the following command:

sudo dnf -y install bind

Install bind 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 bind using yum by running the following command:

sudo yum -y install bind

How To Uninstall bind on Fedora 34

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

sudo dnf remove bind

bind Package Contents on Fedora 34

/etc/logrotate.d/named
/etc/named
/etc/named.conf
/etc/named.rfc1912.zones
/etc/named.root.key
/etc/rndc.conf
/etc/rndc.key
/etc/rwtab.d/named
/etc/sysconfig/named
/run/named
/usr/bin/mdig
/usr/bin/named-rrchecker
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/164d8482dcf643b7397e746f7828e26aa3d43d
/usr/lib/.build-id/24
/usr/lib/.build-id/24/f76a00137ac09ec77bc5251e2d674c751af1f2
/usr/lib/.build-id/44
/usr/lib/.build-id/44/988a4c7b79047560884ece5c9d24357659fdf4
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/a0716f3b70e48fa64616655d45cc1d449d86e1
/usr/lib/.build-id/54
/usr/lib/.build-id/54/1739a5ff8e41c6c5d2f9bed5fb9a11610c34fa
/usr/lib/.build-id/62
/usr/lib/.build-id/62/22160666c1574ceee2d7e337a105e846dbca12
/usr/lib/.build-id/69
/usr/lib/.build-id/69/2faa37d0af9ab86e5c08333702fa727a3a6ac7
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/b02ea3ac6307f2651f696935fd3a783681791f
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/d64324a400ddc5c823b5c09a3cdf687bf8a780
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/bd69746217f9e2d26f002e6727c40de912136a
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/37d34c9dbb6595b6b46f19bbc748db391a0f0b
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/aa7cc2ca48fda91e715f9d7fe39e9836eaec64
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/26d508229c385f920e242381d96ab3247066f4
/usr/lib/systemd/system/named-setup-rndc.service
/usr/lib/systemd/system/named.service
/usr/lib/tmpfiles.d/named.conf
/usr/lib64/bind
/usr/lib64/named
/usr/lib64/named/filter-aaaa.so
/usr/libexec/generate-rndc-key.sh
/usr/sbin/named
/usr/sbin/named-checkconf
/usr/sbin/named-journalprint
/usr/sbin/rndc
/usr/sbin/rndc-confgen
/usr/share/doc/bind
/usr/share/doc/bind/CHANGES
/usr/share/doc/bind/README
/usr/share/doc/bind/named.conf.default
/usr/share/doc/bind/sample
/usr/share/doc/bind/sample/etc
/usr/share/doc/bind/sample/etc/named.conf
/usr/share/doc/bind/sample/etc/named.rfc1912.zones
/usr/share/doc/bind/sample/var
/usr/share/doc/bind/sample/var/named
/usr/share/doc/bind/sample/var/named/data
/usr/share/doc/bind/sample/var/named/my.external.zone.db
/usr/share/doc/bind/sample/var/named/my.internal.zone.db
/usr/share/doc/bind/sample/var/named/named.ca
/usr/share/doc/bind/sample/var/named/named.empty
/usr/share/doc/bind/sample/var/named/named.localhost
/usr/share/doc/bind/sample/var/named/named.loopback
/usr/share/doc/bind/sample/var/named/slaves
/usr/share/doc/bind/sample/var/named/slaves/my.ddns.internal.zone.db
/usr/share/doc/bind/sample/var/named/slaves/my.slave.internal.zone.db
/usr/share/man/man1/mdig.1.gz
/usr/share/man/man1/named-rrchecker.1.gz
/usr/share/man/man5/named.conf.5.gz
/usr/share/man/man5/rndc.conf.5.gz
/usr/share/man/man8/filter-aaaa.8.gz
/usr/share/man/man8/named-checkconf.8.gz
/usr/share/man/man8/named-journalprint.8.gz
/usr/share/man/man8/named.8.gz
/usr/share/man/man8/rndc-confgen.8.gz
/usr/share/man/man8/rndc.8.gz
/var/log/named.log
/var/named
/var/named/data
/var/named/dynamic
/var/named/named.ca
/var/named/named.empty
/var/named/named.localhost
/var/named/named.loopback
/var/named/slaves
/etc/logrotate.d/named
/etc/named
/etc/named.conf
/etc/named.rfc1912.zones
/etc/named.root.key
/etc/rndc.conf
/etc/rndc.key
/etc/rwtab.d/named
/etc/sysconfig/named
/run/named
/usr/bin/mdig
/usr/bin/named-rrchecker
/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/c752c85e996e541ddefdc822dc873e85a16e9b
/usr/lib/.build-id/44
/usr/lib/.build-id/44/b819b9ba68fe337ac5c9e88b37d524f39c2e90
/usr/lib/.build-id/56
/usr/lib/.build-id/56/1dbd985841e7131a03bc9fa6e5a0dcd1404ed2
/usr/lib/.build-id/66
/usr/lib/.build-id/66/8560505491400a4e8b7f88e163b2e41485b766
/usr/lib/.build-id/86
/usr/lib/.build-id/86/01febee009868c5c876e68168fbebc587cc424
/usr/lib/.build-id/90
/usr/lib/.build-id/90/9b2b55be4a17e94ae15ddec16b461d891222e0
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/9f4081cb1fea9a1b8f417fe8f54b82500c9b87
/usr/lib/.build-id/af
/usr/lib/.build-id/af/a277a897149993ef2cb11c81d45e6572e4e903
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/8afc6826075f1e08c85f4ee6f6f2827a43f66f
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/4555182e4be270c837b94af49f6887ed06e9a7
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/51b5148d885015cf2471523e1e4609298fe1b3
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/9b5aaa4d5323d61b47d455ddb8087b7e371ff0
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/1a40ed740730e1501836e83e4c68a573a1427b
/usr/lib/systemd/system/named-setup-rndc.service
/usr/lib/systemd/system/named.service
/usr/lib/tmpfiles.d/named.conf
/usr/lib64/bind
/usr/lib64/named
/usr/lib64/named/filter-aaaa.so
/usr/libexec/generate-rndc-key.sh
/usr/sbin/named
/usr/sbin/named-checkconf
/usr/sbin/named-journalprint
/usr/sbin/rndc
/usr/sbin/rndc-confgen
/usr/share/doc/bind
/usr/share/doc/bind/CHANGES
/usr/share/doc/bind/README
/usr/share/doc/bind/named.conf.default
/usr/share/doc/bind/sample
/usr/share/doc/bind/sample/etc
/usr/share/doc/bind/sample/etc/named.conf
/usr/share/doc/bind/sample/etc/named.rfc1912.zones
/usr/share/doc/bind/sample/var
/usr/share/doc/bind/sample/var/named
/usr/share/doc/bind/sample/var/named/data
/usr/share/doc/bind/sample/var/named/my.external.zone.db
/usr/share/doc/bind/sample/var/named/my.internal.zone.db
/usr/share/doc/bind/sample/var/named/named.ca
/usr/share/doc/bind/sample/var/named/named.empty
/usr/share/doc/bind/sample/var/named/named.localhost
/usr/share/doc/bind/sample/var/named/named.loopback
/usr/share/doc/bind/sample/var/named/slaves
/usr/share/doc/bind/sample/var/named/slaves/my.ddns.internal.zone.db
/usr/share/doc/bind/sample/var/named/slaves/my.slave.internal.zone.db
/usr/share/man/man1/mdig.1.gz
/usr/share/man/man1/named-rrchecker.1.gz
/usr/share/man/man5/named.conf.5.gz
/usr/share/man/man5/rndc.conf.5.gz
/usr/share/man/man8/filter-aaaa.8.gz
/usr/share/man/man8/named-checkconf.8.gz
/usr/share/man/man8/named-journalprint.8.gz
/usr/share/man/man8/named.8.gz
/usr/share/man/man8/rndc-confgen.8.gz
/usr/share/man/man8/rndc.8.gz
/var/log/named.log
/var/named
/var/named/data
/var/named/dynamic
/var/named/named.ca
/var/named/named.empty
/var/named/named.localhost
/var/named/named.loopback
/var/named/slaves

References

Summary

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