The purpose of the lab is to setup the resolver on the first server. You should install either BIND or Unbound -- not both.
-
Connect to the server (resolverX.odslab.se) by using SSH or PuTTY.
-
Change the host name.
sudo hostname resolverX.odslab.se -
Logout and login to get an updated command prompt.
-
Install BIND as the resolver.
sudo apt-get update sudo apt-get upgrade sudo apt-get install bind9 -
Change the configuration in BIND so that it only listens on the localhost. Note that some of the options below may already be present in the default configuration file.
sudo vim /etc/bind/named.conf.optionsFile contents:
options { dnssec-validation auto; listen-on-v6 { ::1; }; listen-on { 127.0.0.1; }; }; -
Instruct the operating system to use the local nameserver:
sudo vim /etc/resolv.confChange the nameserver line into:
nameserver 127.0.0.1 -
Restart BIND9
sudo systemctl restart bind9 -
Verify by using dig. Notice that the AD-flag is set.
dig +dnssec www.opendnssec.org -
Also try resolving a domain where DNSSEC is broken.
dig www.trasigdnssec.seBut we can see that in fact the domain does contain the information if we bypass the DNSSEC validation:
dig +cd www.trasigdnssec.se