1
yum install bind-chroot -y
使用自带脚本挂载路径
/usr/libexec/setup-named-chroot.sh /var/named/chroot on
因为是挂载,所以直接修改源路径和chroot路径效果是一样的。
先关闭named再启动named-chroot
12
systemctl disable --now namedsystemctl enable --now named-chroot