Fedora 30
Sponsored Link

BIND : Chroot Environment
2019/05/09
  Configute chroot environment.
Simply install "bind-chroot" package to do so. If you edit named.conf or other zone files on chroot environment, edit configuration files under /var/named/chroot/.
[root@dlp ~]#
dnf -y install bind-chroot
[root@dlp ~]#
/usr/libexec/setup-named-chroot.sh /var/named/chroot on

[root@dlp ~]#
systemctl stop named

[root@dlp ~]#
systemctl disable named

[root@dlp ~]#
systemctl start named-chroot

[root@dlp ~]#
systemctl enable named-chroot

Created symlink /etc/systemd/system/multi-user.target.wants/named-chroot.service -> /usr/lib/systemd/system/named-chroot.service.
[root@dlp ~]#
ll /var/named/chroot/etc

total 708
drwxr-x---. 3 root named     23 May  9 17:24 crypto-policies
-rw-r--r--. 2 root root     309 Mar 30 11:37 localtime
drwxr-x---. 2 root named      6 May  3 20:03 named
-rw-r-----. 1 root named   2321 May  9 17:15 named.conf
-rw-r-----. 1 root named   1029 Feb 16 03:24 named.rfc1912.zones
-rw-r--r--. 1 root named   1070 Feb 16 03:27 named.root.key
drwxr-x---. 3 root named     25 May  9 17:24 pki
-rw-r--r--. 1 root root    6568 Apr  9 16:47 protocols
-rw-r-----. 1 root named    100 May  9 17:18 rndc.key
-rw-r--r--. 1 root root  692241 Apr  9 16:47 services

[root@dlp ~]#
ll /var/named/chroot/var/named

total 24
-rw-r--r--. 1 root  root   344 May  9 17:17 0.0.10.db
drwxr-x---. 7 root  named   61 May  9 17:24 chroot
drwxrwx---. 2 named named   23 May  9 17:18 data
drwxrwx---. 2 named named   54 May  9 17:24 dynamic
-rw-r-----. 1 root  named 2253 Feb 16 03:47 named.ca
-rw-r-----. 1 root  named  152 Dec 15  2009 named.empty
-rw-r-----. 1 root  named  152 Jun 21  2007 named.localhost
-rw-r-----. 1 root  named  168 Dec 15  2009 named.loopback
drwxrwx---. 2 named named    6 May  3 20:02 slaves
-rw-r--r--. 1 root  root   374 May  9 17:22 srv.world.lan
Matched Content