How To Install bind on Rocky Linux 8

In this tutorial we learn how to install bind on Rocky Linux 8. bind is The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server

Introduction

In this tutorial we learn how to install bind on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install bind.

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

sudo dnf -y install bind

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

sudo yum -y install bind

How To Uninstall bind on Rocky Linux 8

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

sudo dnf remove bind

bind Package Contents on Rocky Linux 8

/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/41
/usr/lib/.build-id/41/e6cd9e9deef18f5c03cf5d9892c2bf7c18c617
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/03b871766aa6baeca1e32d61b69569e34ee925
/usr/lib/.build-id/61
/usr/lib/.build-id/61/82287655f2caa4cf2857015329ae5c608db7ee
/usr/lib/.build-id/74
/usr/lib/.build-id/74/457543fbcde3f8c3d87d2e966cf88cc79a3775
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/63af7b88ad80c7b63054aa02676f0d1c53a774
/usr/lib/.build-id/93
/usr/lib/.build-id/93/2c10b9d9f07f524d835ff4cc4fee7725a4328b
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/8f3ae12884dd56e2efb58cfb24771c1739da01
/usr/lib/.build-id/d6/8f3ae12884dd56e2efb58cfb24771c1739da01.1
/usr/lib/systemd/system/named-setup-rndc.service
/usr/lib/systemd/system/named.service
/usr/lib/tmpfiles.d/named.conf
/usr/lib64/bind
/usr/libexec/generate-rndc-key.sh
/usr/sbin/lwresd
/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/Bv9ARM.ch01.html
/usr/share/doc/bind/Bv9ARM.ch02.html
/usr/share/doc/bind/Bv9ARM.ch03.html
/usr/share/doc/bind/Bv9ARM.ch04.html
/usr/share/doc/bind/Bv9ARM.ch05.html
/usr/share/doc/bind/Bv9ARM.ch06.html
/usr/share/doc/bind/Bv9ARM.ch07.html
/usr/share/doc/bind/Bv9ARM.ch08.html
/usr/share/doc/bind/Bv9ARM.ch09.html
/usr/share/doc/bind/Bv9ARM.ch10.html
/usr/share/doc/bind/Bv9ARM.ch11.html
/usr/share/doc/bind/Bv9ARM.ch12.html
/usr/share/doc/bind/Bv9ARM.ch13.html
/usr/share/doc/bind/Bv9ARM.html
/usr/share/doc/bind/Bv9ARM.pdf
/usr/share/doc/bind/CHANGES
/usr/share/doc/bind/README
/usr/share/doc/bind/isc-logo.pdf
/usr/share/doc/bind/man.arpaname.html
/usr/share/doc/bind/man.ddns-confgen.html
/usr/share/doc/bind/man.delv.html
/usr/share/doc/bind/man.dig.html
/usr/share/doc/bind/man.dnssec-checkds.html
/usr/share/doc/bind/man.dnssec-coverage.html
/usr/share/doc/bind/man.dnssec-dsfromkey.html
/usr/share/doc/bind/man.dnssec-importkey.html
/usr/share/doc/bind/man.dnssec-keyfromlabel.html
/usr/share/doc/bind/man.dnssec-keygen.html
/usr/share/doc/bind/man.dnssec-keymgr.html
/usr/share/doc/bind/man.dnssec-revoke.html
/usr/share/doc/bind/man.dnssec-settime.html
/usr/share/doc/bind/man.dnssec-signzone.html
/usr/share/doc/bind/man.dnssec-verify.html
/usr/share/doc/bind/man.dnstap-read.html
/usr/share/doc/bind/man.genrandom.html
/usr/share/doc/bind/man.host.html
/usr/share/doc/bind/man.isc-hmac-fixup.html
/usr/share/doc/bind/man.lwresd.html
/usr/share/doc/bind/man.mdig.html
/usr/share/doc/bind/man.named-checkconf.html
/usr/share/doc/bind/man.named-checkzone.html
/usr/share/doc/bind/man.named-journalprint.html
/usr/share/doc/bind/man.named-nzd2nzf.html
/usr/share/doc/bind/man.named-rrchecker.html
/usr/share/doc/bind/man.named.conf.html
/usr/share/doc/bind/man.named.html
/usr/share/doc/bind/man.nsec3hash.html
/usr/share/doc/bind/man.nslookup.html
/usr/share/doc/bind/man.nsupdate.html
/usr/share/doc/bind/man.pkcs11-destroy.html
/usr/share/doc/bind/man.pkcs11-keygen.html
/usr/share/doc/bind/man.pkcs11-list.html
/usr/share/doc/bind/man.pkcs11-tokens.html
/usr/share/doc/bind/man.rndc-confgen.html
/usr/share/doc/bind/man.rndc.conf.html
/usr/share/doc/bind/man.rndc.html
/usr/share/doc/bind/named.conf.default
/usr/share/doc/bind/notes.html
/usr/share/doc/bind/notes.pdf
/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/lwresd.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 Rocky Linux 8 using yum and dnf.