websrv1 115.159.105. websrv2 118.89.189.
magedu.com(主DNS服务器) 172.18.25.? — 测试: dig www.magedu.com @172.18.25.?
systemctl status httpd
vim /etc/named.rfc1912.zones
zone “magedu.com” IN {
type master;
file “magedu.com.zone”;
};
vim /var/named/magedu.com.zone
NS dnssrv1 //
NS dnssrv2
dnssrv1 A 172.18.25.?
dnssrv2 A 172.18.25.!
websrv A 115.159.105.
websrv A 118.89.189.
www CNAME websrv
* A 115.159.105.223
@ A 115.159.105.223
magedu.com(从DNS服务器) 172.18.25.37 — dig www.magedu.com @172.18.25.!
systemctl status httpd
zone “magedu.com” IN {
type slave;
masters {172.18.25.?;};
file “slaves/magedu.com.zone”;
};
—————————————————
com(com DNS 服务器) 172.18.25.17 — dig www.magedu.com @172.18.25.17
systemctl status httpd
zone “com” IN {
type master;
file “com.zone”;
};
vim /var/named/com.zone
NS dnssrv1
magedu NS dnssrv2
magedu NS dnssrv3
dnssrv1 A 172.18.25.17
dnssrv2 A 172.18.25.7
dnssrv3 A 172.18.25.37
————————————-
.根(根服务器) 172.18.25.114 — dig www.magedu.com @172.18.25.114
systemctl status httpd
vim /etc/named.conf
zone “.” IN {
type master;
file “root.zone”;
};
vim /var/named/root.zone
NS dnssrv1
com NS dnssrv2
dnssrv1 A 172.18.25.114
dnssrv2 A 172.18.25.17
—————————————
电信DNS服务器 172.18.25.2 — dig www.magedu.com @172.18.25.2
systemctl status httpd
vim /var/named/named.ca
. 518400 IN NS a.root-servers.net.
a.root-servers.net. 3600000 IN A 172.18.25.114
———————————
用户(网段访问) 172.18.25.6
systemctl status httpd
测试: dig www.magedu.com @172.18.25.2 — 指定电信的ip
www.magedu.com. 85769 IN CNAME websrv.magedu.com.
websrv.magedu.com. 85769 IN A 115.159.105.
websrv.magedu.com. 85769 IN A 118.89.189.
本文来自投稿,不代表Linux运维部落立场,如若转载,请注明出处:http://www.178linux.com/91239