[root@fedora ~]# yum -y install bind bind-chroot ← bind,bind-chrootインストール [root@fedora ~]# vi bind-chroot-admin ← bind-chroot-adminスクリプト作成 #!/bin/sh # bind-chroot install check rpm -q bind-chroot > /dev/null 2>&1 [ $? -ne 0 ] && echo bind-chroot not install && exit 1 # bind-chroot enabled sed -i '/^ROOTDIR=/d' /etc/sysconfig/named echo ROOTDIR=/var/named/chroot >> /etc/sysconfig/named # file copy