Sign inSign up

hougaard/dnsmasq

By hougaard

•Updated almost 3 years ago

Image
0

481

hougaard/dnsmasq repository overview

⁠docker-dnsmasq

Fork of jpillora/webproc⁠ All credits goes to jpillora⁠

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

Docker Pulls

⁠Usage
  1. Create a /opt/dnsmasq.conf⁠ file on the Docker host

    #dnsmasq config, for a complete example, see:
    #  http://oss.segetech.com/intra/srv/dnsmasq.conf
    #log all dns queries
    log-queries
    #dont use hosts nameservers
    no-resolv
    #use cloudflare as default nameservers, prefer 1^4
    server=1.0.0.1
    server=1.1.1.1
    strict-order
    #serve all .company queries using a specific nameserver
    server=/company/10.0.0.1
    #explicitly define host-ip mappings
    address=/myhost.company/10.0.0.2
    
  2. Run the container

    docker run -it --rm \
          --name dnsmasq \
          -p 53:53/udp -p 5380:8080 \
          -e "HTTP_USER=foo" \
          -e "HTTP_PASS=bar" \
          hougaard/dnsmasq
    
    docker run \
       --name dnsmasq \
       -d \
       -p 53:53/udp \
       -p 5380:8080 \
       --log-opt "max-size=100m" \
       -e "HTTP_USER=foo" \
       -e "HTTP_PASS=bar" \
       --restart always \
       hougaard/dnsmasq
    
  3. Visit http://<docker-host>:5380, authenticate with foo/bar and you should see

    screen shot 2017-10-15 at 1 41 21 am

Tag summary

Content type

Image

Digest

sha256:31c78cc59…

Size

10.7 MB

Last updated

almost 3 years ago

docker pull hougaard/dnsmasq