Lightweight Unbound server image.
1.6K
run Unbound DNS in Alpine docker container. Mainly for Raspberry Pi, but should work on any ARM64 platform.
---
version: "3"
services:
unbound:
container_name: unbound-dns
hostname: unbound-pihole
image: d3vilh/unbound-docker:latest
restart: unless-stopped
volumes:
- "./etc-unbound/unbound.conf:/etc/unbound/unbound.conf"
- "./etc-unbound/root.hints:/etc/unbound/root.hints"
- "./log-unbound/unbound.log:/var/log/unbound.log"
ports:
- "5335:5335/tcp"
- "5335:5335/udp"
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
networks:
unbound-net:
cap_add:
- NET_ADMIN
networks:
unbound-net:
ipam:
driver: default
docker-compose up -d
or
docker run -d --rm \
-p 53:5335 -p 53:5335/udp \
-v /home/chechotka/build/unbound-docker/etc-unbound/unbound.conf:/etc/unbound/unbound.conf \
d3vilh/unbound:latest
dig github.com @<your Unbound IP> -p 53
Running unbound with its own MAC and IP address on the network, allowing to serve the physical network directly.
docker network create -d macvlan --subnet=10.0.1.0/24 --gateway=10.0.1.1 -o parent=eth0 ext_net
docker run -d --name dnsresolver01 --network=ext_net --ip=10.0.1.8 --restart=unless-stopped local/unbound
Here is main GitHub repo.
Content type
Image
Digest
sha256:c82b92501…
Size
5.4 MB
Last updated
over 1 year ago
docker pull d3vilh/unbound-docker