BIND : Configure Chroot Environment2020/05/03 |
If you'd like to configute Chroot Environment for named, Set like follows.
|
|
[1] | After setting Chroot environment, configuration files are placed under [/var/named/chroot]. [named.conf] is placed under [/var/named/chroot/etc/named.conf], zone files are placed [/var/named/chroot/var/named/***]. When modify settings, Change them under [/var/named/chroot] files. |
[root@dlp ~]#
dnf -y install bind-chroot
[root@dlp ~]#
/usr/libexec/setup-named-chroot.sh /var/named/chroot on
[root@dlp ~]#
[root@dlp ~]# systemctl disable --now named [root@dlp ~]# systemctl enable --now named-chroot Created symlink /etc/systemd/system/multi-user.target.wants/named-chroot.service → /usr/lib/systemd/system/named-chroot.service. ll /var/named/chroot/etc total 708 drwxr-x---. 3 root named 23 May 3 05:04 crypto-policies -rw-r--r--. 3 root root 3536 Jan 30 23:57 localtime drwxr-x---. 2 root named 6 Apr 16 07:54 named -rw-r-----. 1 root named 2065 May 3 04:53 named.conf -rw-r-----. 1 root named 1029 Apr 16 07:54 named.rfc1912.zones -rw-r--r--. 1 root named 1070 Apr 16 07:54 named.root.key drwxr-x---. 3 root named 25 May 3 05:04 pki -rw-r--r--. 1 root root 6568 Oct 9 2019 protocols -rw-r-----. 1 root named 100 May 3 04:59 rndc.key -rw-r--r--. 1 root root 692241 Oct 9 2019 services[root@dlp ~]# ll /var/named/chroot/var/named total 24 -rw-r--r--. 1 root root 313 May 3 04:58 0.0.10.db drwxr-x---. 7 root named 61 May 3 05:04 chroot drwxrwx---. 2 named named 23 May 3 04:59 data drwxrwx---. 2 named named 60 May 3 05:05 dynamic -rw-r-----. 1 root named 2253 Apr 16 07:54 named.ca -rw-r-----. 1 root named 152 Apr 16 07:54 named.empty -rw-r-----. 1 root named 152 Apr 16 07:54 named.localhost -rw-r-----. 1 root named 168 Apr 16 07:54 named.loopback drwxrwx---. 2 named named 6 Apr 16 07:53 slaves -rw-r--r--. 1 root root 404 May 3 05:03 srv.world.lan |
Sponsored Link |