Skip to content

jsanchez0x/unbound_container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unbound_container Docker Image CI Generic badge

Simple implementation of unbound to work with Pi-Hole. Both in separate Docker containers.

Prerequisites

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.

Build

git clone https://github.com/jsanchez0x/unbound_container.git
docker build --rm --tag jsanchez0x/unbound_container:latest unbound_container

Run

docker run -d \
    --name unbound \
    -p 5335:5335/tcp -p 5335:5335/udp \
    --restart=unless-stopped \
    --cap-add=NET_ADMIN \
    jsanchez0x/unbound_container:latest

With custom network

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

Maintenance

Re-create every 6 months to update the root servers. Necessary to download updated dns-root-data.