chroot Environment2015/01/13 |
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 ~]#
[root@dlp ~]# yum -y install bind-chroot /etc/rc.d/init.d/named restart
Stopping named:
[root@dlp ~]# [ OK ] Starting named: [ OK ] ll /var/named/chroot/etc total 20 -rw-r--r-- 1 root root 331 Jun 20 05:56 localtime -rw-r----- 1 root named 1230 Feb 23 07:35 named.caching-nameserver.conf -rw-r--r-- 1 root named 1351 Jun 21 09:56 named.conf -rw-r----- 1 root named 955 Feb 23 07:35 named.rfc1912.zones -rw-r----- 1 root named 113 Jun 20 07:48 rndc.key[root@dlp ~]# ll /var/named/chroot/var/named total 44 -rw-r----- 1 root named 359 Jun 21 11:19 0.0.10.db drwxrwx--- 2 named named 4096 Aug 26 2004 data -rw-r----- 1 root named 198 Feb 23 07:35 localdomain.zone -rw-r----- 1 root named 195 Feb 23 07:35 localhost.zone -rw-r----- 1 root named 427 Feb 23 07:35 named.broadcast -rw-r----- 1 root named 1892 Feb 23 07:35 named.ca -rw-r----- 1 root named 424 Feb 23 07:35 named.ip6.local -rw-r----- 1 root named 426 Feb 23 07:35 named.local -rw-r----- 1 root named 427 Feb 23 07:35 named.zero -rw-r----- 1 root named 350 Jun 21 10:14 srv.world.lan drwxrwx--- 2 named named 4096 Jul 27 2004 slaves |
Sponsored Link |