获取镜像
docker pull jpillora/dnsmasq
配置域名
# http://oss.segetech.com/intra/srv/dnsmasq.conf
#log all dns queries
log-queries
#dont use hosts nameservers
no-resolv
#use google as default nameservers
server=223.5.5.5
server=223.6.6.6
#serve all .company queries using a specific nameserver
server=/company/10.0.0.1
#explicitly define host-ip mappings
address=/jxc.linksame.com/192.168.1.143
address=/kaifa.linksame.com/192.168.1.143
address=/www.apps.com/192.168.1.143
address=/phpmyadmin.linksame.com/192.168.1.143
address=/jx.apps.com/192.168.1.143
address=/git.com/192.168.1.141
设置自己电脑的dns 地址为 docker运行的这台机器IP,或者在路由器中设置全公司 可以用