The purpose of the lab is to setup the resolver on the first server. You should install either BIND or Unbound -- not both (unless uninstall BIND first).
-
Connect to the server (resolverX.odslab.se) by using SSH or PuTTY.
-
Change the host name.
sudo hostnamectl set-hostname resolverX.odslab.se
-
Login and logout to get an updated command prompt.
-
Upgrade base operating system:
sudo apt-get update && sudo apt-get upgrade -y
-
Uninstall BIND if previously installed:
sudo dpkg --purge bind9
-
Install Unbound as the resolver. Also install dnsutils for dig(1).
sudo apt-get install -y unbound dnsutils
-
Verify by using dig. Notice that the AD-flag is set.
dig @127.0.0.1 +dnssec www.opendnssec.org
-
Also try resolving a domain where DNSSEC is broken.
dig @127.0.0.1 www.trasigdnssec.se
But we can see that in fact the domain does contain the information if we bypass the DNSSEC validation:
dig @127.0.0.1 +cd +dnssec www.trasigdnssec.se
Next Section: Install OpenDNSSEC