How To Install unbound.x86_64 on Amazon Linux 2

In this tutorial we learn how to install unbound.x86_64 in Amazon Linux 2. unbound.x86_64 is Validating, recursive, and caching DNS(SEC) resolver

Introduction

In this tutorial we learn how to install unbound.x86_64 on Amazon Linux 2.

What is unbound.x86_64

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 to install unbound.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install unbound.x86_64.

Install unbound.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install unbound.x86_64

How To Uninstall unbound.x86_64 on Amazon Linux 2

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

sudo yum remove unbound.x86_64

unbound.x86_64 Package Contents on Amazon Linux 2

/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/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-1.7.3
/usr/share/doc/unbound-1.7.3/CREDITS
/usr/share/doc/unbound-1.7.3/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.x86_64 on Amazon Linux 2 using yum.