dnsmasq in a docker container, configurable via a simple web UI
Create a data/dnsmasq.conf file on the Docker host
#dnsmasq config, for a complete example, see:
# https://github.com/s3than/go-dnsmasq
192.168.0.1 db1.db.local
192.168.0.2 *.db.local
Run the container
$ docker run \
--name dnsmasq \
-d \
-p 53:53/udp \
-p 5380:5380 \
-v data/dnsmasq.conf:/data/dnsmasq.conf \
--log-opt "max-size=100m" \
-e "USER=foo" \
-e "PASS=bar" \
s3than/dnsmasq
Visit http://<docker-host>:5380, authenticate with foo/bar
docker pull s3than/dnsmasq:latest