Assumption: you have managed to run /home/pi/compile_unbound.sh and both Unbound and Redis are installed on your system, using the default settings that come with the packages.
The GitHub repository has a directory structure, you need to duplicate this, and copy the files on your system.
If unbound compiled successfully, /etc/unbound already exists. You need to get the RAW content of the file /etc/unbound/unbound.conf and copy (use WinSCP) the content on your system (same location). This file tells unbound to use all of the configuration files in /etc/unbound/unbound.conf.d, a folder you need to create yourself on your system.
Using the same method, you used to copy the file /etc/unbound/unbound.conf, you now need to get the RAW content of all (4) files in /etc/unbound/unbound.conf.d and copy the content on your system.
WARNING: the content of /etc/unbound/unbound.conf and /etc/unbound/unbound.conf.d/unbound.conf is different, don't copy the same content twice!!!
The file /etc/unbound/unbound.conf.d/unbound.conf contains IP addresses. You need to change them to work on your system. If you don't know how to do that, simply:
- remove the lines
interface: 127.10.10.2@5552
andinterface: fdaa:bbcc:ddee:2::5552@5552
- uncomment the line
#port: 5552
(remove the#
sign) and change the number into5353
(resulting line:port: 5353
). - If you don't have IPv6 on your system, change the line
do-ip6: yes
intodo-ip6: no
The changed settings are the same as the settings, explained in the pihole documentation for unbound, this will allow you to follow the rest of that guide, to complete the pihole configuration.
After you've completed copying and changing the fhe configuration files, run unbound-checkconf to verify you haven't made any mistakes.
If everything is OK, run sudo service unbound restart, this will start unbound with the new config, and check if unbound is really running (sudo service unbound status)
now complete the setup, following the instuctions from the pihole guide, starting at Start your local recursive server and test that it's operational
(skip sudo service unbound start
, we've already done that.
Suc6