BINDEnableChrootEnvironmentInstallation et configuration de bind-chroot Sous CentOS 7, voici la procédure pour chrooter bind : # 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 enable named-chroot # ln -s '/usr/lib/systemd/system/named-chroot.service' '/etc/systemd/system/multi-user.target.wants/named-chroot.service' # ll /var/named/chroot/etc total 688 -rw-r--r--. 1 root root 2945 9 mai 15:11 localtime drwxr-x---. 2 root named 6 12 avril 20:48 named -rw-r-----. 1 root named 1705 22 mars 2016 named.conf -rw-r--r--. 1 root named 3923 12 avril 20:48 named.iscdlv.key -rw-r-----. 1 root named 931 21 juin 2007 named.rfc1912.zones -rw-r--r--. 1 root named 1587 22 mai 2017 named.root.key drwxr-x---. 3 root named 25 27 août 16:31 pki -rw-r--r--. 1 root root 6545 7 juin 2013 protocols -rw-r----- 1 root named 100 27 août 16:41 rndc.key # ll /var/named/chroot/var/named total 16 drwxr-x---. 7 root named 61 27 août 16:31 chroot drwxrwx---. 2 named named 23 27 août 16:41 data drwxrwx---. 2 named named 60 27 août 16:42 dynamic -rw-r-----. 1 root named 2281 22 mai 2017 named.ca -rw-r-----. 1 root named 152 15 déc. 2009 named.empty -rw-r-----. 1 root named 152 21 juin 2007 named.localhost -rw-r-----. 1 root named 168 15 déc. 2009 named.loopback drwxrwx---. 2 named named 6 12 avril 20:48 slaves |