局域网内部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

改系统语言

局域网内部DNS搭建_第1张图片

设置

输入图片说明输入图片说明输入图片说明局域网内部DNS搭建_第2张图片局域网内部DNS搭建_第3张图片

修改好后点击应用

局域网内部DNS搭建_第4张图片

测试

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

转载于:https://my.oschina.net/leeyoung/blog/1535700

你可能感兴趣的:(局域网内部DNS搭建)