HUB
Sign inSign up

dharmin/dnsmasq

By dharmin

•Updated over 8 years ago

simple dnsmasq repo. only 3mb

Image
0

200

dharmin/dnsmasq repository overview

⁠dnsmasq-docker

dnsmasq-docker is the simplest and smallest dnsmasq docker container.

⁠Useage
$ docker run \
    --name dnsmasq \
    -d \
    -p 53:53/udp \
    -v /home/dharmin/dnsmasq/confs:/etc/dnsmasq.d \
    --restart always \
    dharmin/dnsmasq

Now create configs in mounted volume directory; In my case /home/dharmin/dnsmasq/confs

$ cd /home/dharmin/dnsmasq/confs
$ echo "address=/example.com/192.168.0.164" > example.com.conf

Now test,

$ nslookup example.com 127.0.0.1
Server:		127.0.0.1
Address:	127.0.0.1#53

Name:	example.com
Address: 127.0.0.1

Tag summary

Content type

Image

Digest

Size

3.4 MB

Last updated

over 8 years ago

docker pull dharmin/dnsmasq