Sign inSign up

chanux/dnsmasq

By chanux

Updated almost 11 years ago

Image
0

229

chanux/dnsmasq repository overview

#Docker: dnsmasq

Simple dnsmaq container

Run the container mounting your hosts files directory to /etc/addnhosts

sudo docker run -d -v /path/to/hosts/dir:/etc/addnhosts --name dnsmasq chanux/dnsmasq

To use this as the DNS server for another container, pass it's IP with --dns option

sudo docker inspect --format='{{.NetworkSettings.IPAddress}}' dnsmasq

sudo docker run -d --dns <IP from previous step> docker/image

That's about it

Tag summary

Content type

Image

Digest

sha256:a683d9dbb

Size

45.1 MB

Last updated

almost 11 years ago

docker pull chanux/dnsmasq