Moon Light Box

Time is Money

Docker - DNS

| Comments

# docker run --name=dns --net=host --cap-add=NET_ADMIN -v /opt/dns:/opt -d andyshinn/dnsmasq:2.76 --addn-hosts=/opt/hosts -q --log-facility=-

docker logs

vim /opt/dns/hosts

docker kill -s HUP dns

docker exec -it dns /bin/sh


`

https://coolex.info/blog/511.html
http://www.coderli.com/config-dnsmasq-using-docker/
https://philipzheng.gitbooks.io/docker_practice/content/advanced_network/dns.html
https://hub.docker.com/r/andyshinn/dnsmasq/

Comments

comments powered by Disqus