域控 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
原创文章,作者:KSOIU,如若转载,请注明出处:http://www.wangzhanshi.com/n/14278.html