域控 dc.yimitest.com 192.168.20.201/24
DNS dns.yimitest.com 192.168.20.154/24
域控 dc.yimitest.com 192.168.30.201/24
DNS dns30.yimitest.com 192.168.30.154/24
192.168.20.154配置
vi /etc/sysconfig/selinux
SELINUX=disabled
reboot
firewall-cmd --add-port=53/udp --permanent firewall-cmd --reload
yum install bind -y yum install bind-chroot bind-utils -y
vi /etc/named.conf
listen-on port 53 {192.168.20.154;127.0.0.1;} allow-query {any;};
vi /etc/named.rfc1912.zones
------------------------------
zone "yimitest.com" IN { type master; file "yimitest.com.zon"; allow-update { 192.168.20.201 //域控ip地址 }; };
-------------------------------
vi /var/named/yimitest.com.zon
---------------------------------------
$TTL 1D $ORIGIN yimitest.com @ IN SOA dns.yimitest.com. admin.yimitest.com ( 20170526; serial 1D ; refresh 1H ; retry 1W ; expire 3H ; minimum ) IN NS dns dns IN A 192.168.20.154 dc IN A 192.168.20.201
---------------------------------------
named-checkconf /etc/named.conf named-checkzone yimitest.com /var/named/yimitest.com.zon chgrp named /var/named/yimitest.com.zon systemctl restart named systemctl enable named systemctl status named dig @192.168.20.154 dns.yimitest.com dig @192.168.20.154 dc.yimitest.com
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。