BIND : Configure Chroot Environment2021/11/09 |
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 ~]#
mkdir /var/named/chroot/usr/lib64/named [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 716 drwxr-x---. 3 root named 23 Nov 2 04:55 crypto-policies -rw-r--r--. 2 root root 309 Sep 27 05:32 localtime drwxr-x---. 2 root named 6 Nov 2 04:55 named -rw-r-----. 1 root named 2390 Nov 9 08:45 named.conf -rw-r-----. 1 root named 1029 Nov 2 04:55 named.rfc1912.zones -rw-r--r--. 1 root named 686 Nov 2 04:55 named.root.key drwxr-x---. 3 root named 25 Nov 2 04:55 pki -rw-r--r--. 1 root root 6568 Jul 16 17:35 protocols -rw-r-----. 1 root named 100 Nov 9 08:35 rndc.key -rw-r--r--. 1 root root 701745 Jul 16 17:35 services[root@dlp ~]# ll /var/named/chroot/var/named total 24 -rw-r--r--. 1 root root 313 Nov 9 08:34 0.0.10.db drwxr-x---. 7 root named 61 Nov 2 04:55 chroot drwxrwx---. 2 named named 23 Nov 9 08:35 data drwxrwx---. 2 named named 108 Nov 9 08:47 dynamic -rw-r-----. 1 root named 2253 Nov 2 04:55 named.ca -rw-r-----. 1 root named 152 Nov 2 04:55 named.empty -rw-r-----. 1 root named 152 Nov 2 04:55 named.localhost -rw-r-----. 1 root named 168 Nov 2 04:55 named.loopback drwxrwx---. 2 named named 6 Nov 2 04:55 slaves -rw-r--r--. 1 root root 404 Nov 9 08:46 srv.world.lan |
Sponsored Link |