局域网内部DNS搭建
局域网内部DNS搭建
wzyuliyang 发表于1个月前
局域网内部DNS搭建
  • 发表于 1个月前
  • 阅读 6
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云实验室 1小时搭建人工智能应用,让技术更容易入门 免费体验 >>>   

摘要: docker中跑DNS,方便移植

安装docker

yum install docker-engine systemctl start docker && systemctl enable docker

下载镜像

wget http://mirrors.bclinux.org/bigcloud/2017.02/onest/docker/bind.tar docker load -i bind.tar docker run -d --name=bind --dns=127.0.0.1 --publish=10.139.11.90:53:53/udp --publish=10.139.11.90:10000:10000 --volume=/srv/docker/bind:/data--env='ROOT_PASSWORD=onest123' sameersbn/bind:9.9.5-20170626

浏览器打开https://10.139.11.90:10000/

用户名root 密码onest123

改系统语言

输入图片说明

设置

输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明

修改好后点击应用

输入图片说明

测试

cat /etc/resolv.conf
# Generated by NetworkManager
search openstacklocal novalocal
nameserver 10.139.11.90


[root@yly-ceph-vstart-master ~]# nslookup bucket2.eos-website.onest.com
Server:		10.139.11.90
Address:	10.139.11.90#53

Name:	bucket2.eos-website.onest.com
Address: 10.139.12.23

[root@yly-ceph-vstart-master ~]# nslookup bucket1.eos-website.onest.com
Server:		10.139.11.90
Address:	10.139.11.90#53

Name:	bucket1.eos-website.onest.com
Address: 10.139.12.23

[root@yly-ceph-vstart-master ~]# nslookup eos-website.onest.com
Server:		10.139.11.90
Address:	10.139.11.90#53

Name:	eos-website.onest.com
Address: 10.139.12.23

[root@yly-ceph-vstart-master ~]# nslookup eos.onest.com
Server:		10.139.11.90
Address:	10.139.11.90#53

Name:	eos.onest.com
Address: 10.139.12.23

[root@yly-ceph-vstart-master ~]# nslookup bucket1.eos.onest.com
Server:		10.139.11.90
Address:	10.139.11.90#53

Name:	bucket1.eos.onest.com
Address: 10.139.12.23

[root@yly-ceph-vstart-master ~]# nslookup bucket2.eos.onest.com
Server:		10.139.11.90
Address:	10.139.11.90#53

Name:	bucket2.eos.onest.com
Address: 10.139.12.23

[root@yly-ceph-vstart-master ~]# nslookup eos.onest.com
Server:		10.139.11.90
Address:	10.139.11.90#53

Name:	eos.onest.com
Address: 10.139.12.23

标签: dns
共有 人打赏支持
粉丝 3
博文 18
码字总数 16733
作品 1
×
wzyuliyang
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: