d3vilh/unbound-docker

By d3vilh

Updated over 1 year ago

Lightweight Unbound server image.

Image
Networking
Security
0

1.6K

d3vilh/unbound-docker repository overview

Unbound-docker

run Unbound DNS in Alpine docker container. Mainly for Raspberry Pi, but should work on any ARM64 platform.

Docker compose
---
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
Running with Docker compose
docker-compose up -d

or

Running with native Docker
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
Verification
dig github.com @<your Unbound IP> -p 53
Running with own MAC & IP

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.

Buy Me A Coffee

Tag summary

Content type

Image

Digest

sha256:c82b92501

Size

5.4 MB

Last updated

over 1 year ago

docker pull d3vilh/unbound-docker