Simple implementation of unbound to work with Pi-Hole. Both in separate Docker containers.
If the Pi-hole container is running on a network other than the default. If not, this is not necessary.
- Get the name of the network where the Pi-Hole container is located.
- And set an unused IP of this network.
git clone https://github.com/jsanchez0x/unbound_container.git
docker build --rm --tag jsanchez0x/unbound_container:latest unbound_container
docker run -d \
--name unbound \
-p 5335:5335/tcp -p 5335:5335/udp \
--restart=unless-stopped \
--cap-add=NET_ADMIN \
jsanchez0x/unbound_container:latest
Assuming that the network name is called pihole-network and the IP 172.18.0.4 is not used.
docker run -d \
--name unbound \
-p 5335:5335/tcp -p 5335:5335/udp \
--net pihole-network --ip 172.18.0.4 \
--restart=unless-stopped \
--cap-add=NET_ADMIN \
jsanchez0x/unbound_container:latest
Re-create every 6 months to update the root servers. Necessary to download updated dns-root-data.