yum -y install bind bind-utils
cd /163.17.209.1/named
/bin/cp /163.17.209.1/etc/named.conf /etc/. -f
/bin/cp /163.17.209.1/etc/named.rfc1912.zones /etc/. -f
/bin/cp /163.17.209.1/named/db.wcjs.tc.edu.tw /var/named/. -f
/bin/cp /163.17.209.1/named/db.163.17.209 /var/named/. -f
/bin/cp /163.17.209.1/named/wcjs.ip6.rev /var/named/. -f
/bin/cp /163.17.209.1/named/dummy-block /var/named/. -f
cd /var/named
chown root:named /var/named
chown root:named db.wcjs.tc.edu.tw
chown root:named db.163.17.209
chown root:named wcjs.ip6.rev
systemctl start named
systemctl status named
systemctl enable named
firewall-cmd --add-service=dns --permanent
firewall-cmd --reload
yum -y install bind-chroot
/usr/libexec/setup-named-chroot.sh /var/named/chroot on
systemctl stop named
systemctl disable named
systemctl start named-chroot
systemctl status named-chroot
systemctl enable named-chroot
ll /var/named/chroot/etc
ll /var/named/chroot/var/named
firewall-cmd --add-service=dns --permanent
firewall-cmd --reload
沒有留言:
張貼留言