Install Unbound

apt-get install dnsutils

apt-get install unbound

Put file pi-hole.conf in /etc/unbound/unbound.conf.d/

Set port to 5335

Restart Unbound

service unbound restart

Test unbound using dig (might need to apt-get install dnsutils)

dig @127.0.0.1 -p 5335 bing.com

Install Docker

apt-get install docker-compose

Pull and run pihole image using this command line

docker run -d --name pihole-240 --network=host -p 80:80 -p 53:53 -p 67:67 -p 443:443 --dns 8.8.8.8 --env INTERFACE=enp0s5 --env WEBPASSWORD=password --env TZ=America/New_York -v ${pwd}/etc-pihole/:/etc/pihole/ -v ${pwd}/pi-hole/etc-dnsmasq.d/:/etc/dnsmasq.d/ pihole/pihole

Test Pi-hole

dig @127.0.0.1 bing.com

 

Note - disable unbound by running service unbound stop before using apt-get upgrade to update system