HUB
Sign inSign up

s3than/dnsmasq

By s3than

•Updated over 9 years ago

Dnsmasq as a container

Image
0

990

s3than/dnsmasq repository overview

⁠docker-dnsmasq

dnsmasq in a docker container, configurable via a simple web UI⁠

⁠Usage
  1. 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
    
  2. 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
    
  3. Visit http://<docker-host>:5380, authenticate with foo/bar

Tag summary
Recent tags
Content type
Image
Digest
Size
6.7 MB
Last updated
over 9 years ago
docker pull s3than/dnsmasq:latest