Recipe for Unbound container in rpi

Conf file

upstream DNS conf file (save as home/pi/unbound-rpi-docker/forward-google.conf)

YAML
forward-zone:
      name: "."
        # forward-addr: 1.1.1.1           # Cloudflare
        forward-addr: 8.8.8.8            # Google
        # forward-addr: 4.2.2.4           # Level(3)
Click to expand and view more

docker compose file

docker-compose.yml

docker-compose.yml
name: unbound
services:
    unbound-rpi:
        container_name: unbound-rpi
        volumes:
            - /home/pi/unbound-rpi-docker/forward-google.conf:/opt/unbound/etc/unbound/forward-records.conf:ro
        ports:
            - 53:53/udp
            - 53:53/tcp
        restart: unless-stopped
        image: mvance/unbound-rpi:latest
Click to expand and view more

Copyright Notice

Author: Vorasilp K.

Link: https://vorasilp.xom/posts/recipe-for-unbound-container-in-rpi/

License: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut