BIND 8.1.2 and later include an option that allows you to chroot( ) the name server: to change its view of the filesystem so that its root directory is actually a particular directory on your host's filesystem. This effectively traps your name server in this directory, along with any attackers who successfully compromise your name server's security.
cd /var/namedmkdir -p dev etc var/named var/runchown -R named:named var/runcp /etc/named.conf etcmv pz var/namedmknod dev/null c 1 3mknod dev/random c 1 8vi /etc/rc.d/syslog/etc/rc.d/syslog stop && /etc/rc.d/syslog startvi /etc/rc.d/namedThat should be all there is to it. Restarting named should cause it to run in the new chroot. Welcome to an even more secure Bind configuration!
|
|
|