run Unbound DNS in Alpine docker container. Mainly for Raspberry Pi, but should work on any ARM64 platform.
docker build https://github.com/d3vilh/unbound-docker.git -t local/unbound
docker run -d --rm \
-p 53:5335 -p 53:5335/udp \
-v /home/philipp/build/unbound-docker/etc-unbound/unbound.conf:/etc/unbound/unbound.conf \
local/unbound:latest
dig github.com @192.168.88.9 -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