sudo su
root@Pi-DNS01:/home/pi#
sudo apt install unbound
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libunbound8 unbound-anchor
Suggested packages:
apparmor
The following NEW packages will be installed:
libunbound8 unbound unbound-anchor
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,217 kB of archives.
After this operation, 4,783 kB of additional disk space will be used.
Do you want to continue? [Y/n]
y
Get:1
http://mirror.netcologne.de/raspbian/raspbian buster/main armhf libunbound8 armhf 1.9.0-2+deb10u1 [402 kB]
Get:2
http://mirror.netcologne.de/raspbian/raspbian buster/main armhf unbound-anchor armhf 1.9.0-2+deb10u1 [145 kB]
Get:3
http://mirror.netcologne.de/raspbian/raspbian buster/main armhf unbound armhf 1.9.0-2+deb10u1 [669 kB]
Fetched 1,217 kB in 1s (1,078 kB/s)
Selecting previously unselected package libunbound8:armhf.
(Reading database ... 94008 files and directories currently installed.)
Preparing to unpack .../libunbound8_1.9.0-2+deb10u1_armhf.deb ...
Unpacking libunbound8:armhf (1.9.0-2+deb10u1) ...
Selecting previously unselected package unbound-anchor.
Preparing to unpack .../unbound-anchor_1.9.0-2+deb10u1_armhf.deb ...
Unpacking unbound-anchor (1.9.0-2+deb10u1) ...
Selecting previously unselected package unbound.
Preparing to unpack .../unbound_1.9.0-2+deb10u1_armhf.deb ...
Unpacking unbound (1.9.0-2+deb10u1) ...
Setting up libunbound8:armhf (1.9.0-2+deb10u1) ...
Setting up unbound-anchor (1.9.0-2+deb10u1) ...
Setting up unbound (1.9.0-2+deb10u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/unbound.service → /lib/systemd/system/unbound.service.
Created symlink /etc/systemd/system/unbound.service.wants/unbound-resolvconf.service → /lib/systemd/system/unbound-resolvconf.service.
Job for unbound.service failed because the control process exited with error code.
See "systemctl status unbound.service" and "journalctl -xe" for details.
Job for unbound.service failed because the control process exited with error code.
See "systemctl status unbound.service" and "journalctl -xe" for details.
invoke-rc.d: initscript unbound, action "start" failed.
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2020-04-14 09:05:29 CEST; 37ms ago
Docs: man:unbound(

Process: 26556 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=0/SUCCESS)
Process: 26560 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=0/SUCCESS)
Process: 26568 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, status=1/FAILURE)
Main PID: 26568 (code=exited, status=1/FAILURE)
Processing triggers for systemd (241-7~deb10u3+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
root@Pi-DNS01:/home/pi#
wget -O root.hints https://www.internic.net/domain/named.root
--2020-04-14 09:05:53--
https://www.internic.net/domain/named.root
Resolving
www.internic.net (
www.internic.net)... 192.0.32.9, 2620:0:2d0:200::9
Connecting to
www.internic.net (
www.internic.net)|192.0.32.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3313 (3.2K) [text/plain]
Saving to: ‘root.hints’
root.hints 100%[===================>] 3.24K --.-KB/s in 0s
2020-04-14 09:05:55 (24.2 MB/s) - ‘root.hints’ saved [3313/3313]
root@Pi-DNS01:/home/pi# sudo mv root.hints /var/lib/unbound/
root@Pi-DNS01:/home/pi# /etc/unbound/unbound.conf.d/pi-hole.conf
bash: /etc/unbound/unbound.conf.d/pi-hole.conf: No such file or directory
root@Pi-DNS01:/home/pi# logfile: "/var/log/unbound/unbound.log"
bash: logfile:: command not found
root@Pi-DNS01:/home/pi# /etc/var/log/unbound/unbound.log
bash: /etc/var/log/unbound/unbound.log: No such file or directory
root@Pi-DNS01:/home/pi# nano /etc/unbound/unbound.conf.d/pi-hole.conf
root@Pi-DNS01:/home/pi# sudo service unbound start
root@Pi-DNS01:/home/pi# dig pi-hole.net @127.0.0.1 -p 5353
; <<>> DiG 9.11.5-P4-5.1-Raspbian <<>> pi-hole.net @127.0.0.1 -p 5353
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1794
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
;; QUESTION SECTION:
;pi-hole.net. IN A
;; ANSWER SECTION:
pi-hole.net. 3600 IN A 206.189.252.21
;; Query time: 287 msec
;; SERVER: 127.0.0.1#5353(127.0.0.1)
;; WHEN: Tue Apr 14 10:20:06 CEST 2020
;; MSG SIZE rcvd: 56
root@Pi-DNS01:/home/pi# dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5353
; <<>> DiG 9.11.5-P4-5.1-Raspbian <<>> sigfail.verteiltesysteme.net @127.0.0.1 -p 5353
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 61741
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
;; QUESTION SECTION:
;sigfail.verteiltesysteme.net. IN A
;; Query time: 169 msec
;; SERVER: 127.0.0.1#5353(127.0.0.1)
;; WHEN: Tue Apr 14 10:21:50 CEST 2020
;; MSG SIZE rcvd: 57
root@Pi-DNS01:/home/pi# dig sigok.verteiltesysteme.net @127.0.0.1 -p 5353
; <<>> DiG 9.11.5-P4-5.1-Raspbian <<>> sigok.verteiltesysteme.net @127.0.0.1 -p 5353
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58878
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
;; QUESTION SECTION:
;sigok.verteiltesysteme.net. IN A
;; ANSWER SECTION:
sigok.verteiltesysteme.net. 60 IN A 134.91.78.139
;; Query time: 19 msec
;; SERVER: 127.0.0.1#5353(127.0.0.1)
;; WHEN: Tue Apr 14 10:22:03 CEST 2020
;; MSG SIZE rcvd: 71
root@Pi-DNS01:/home/pi# nano unboudautoupdate
root@Pi-DNS01:/home/pi# nano unboudautoupdate
root@Pi-DNS01:/home/pi# chmod +X unboudautoupdate
root@Pi-DNS01:/home/pi# crontab -e
no crontab for root - using an empty one
Select an editor. To change later, run 'select-editor'.
1. /bin/nano <---- easiest
2. /usr/bin/vim.tiny
3. /bin/ed
Choose 1-3 [1]: nano crontab -e
Choose 1-3 [1]: nano crontab
Choose 1-3 [1]: 1
crontab: installing new crontab
root@Pi-DNS01:/home/pi# service unbound restart