Fork me on GitHub
代码改变世界

搭建企业内部DNS服务器,docker 部署内部 dnsmasq

2017-09-20 15:16  freefei  阅读(1428)  评论(0编辑  收藏  举报

获取镜像

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,或者在路由器中设置全公司 可以用

@ https://github.com/ranmufei

守望者舆情监控

守望者舆情监控系统