This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
chrooted_dns [2007/01/03 12:10] adam created |
chrooted_dns [2016/11/25 22:38] (current) |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Run | Run | ||
| - | apt-get install bind9 | + | |
| For security reasons we want to run BIND chrooted so we have to do the following steps: | For security reasons we want to run BIND chrooted so we have to do the following steps: | ||
| - | / | + | |
| - | Edit the file / | + | Edit the file '' |
| - | vi /etc/default/bind9 | + | Modify the line: '' |
| - | OPTIONS=" | + | vi / |
| - | # Set RESOLVCONF=no to not run resolvconf | + | |
| - | RESOLVCONF=yes | + | |
| + | # Set RESOLVCONF=no to not run resolvconf | ||
| + | RESOLVCONF=yes | ||
| Create the necessary directories under /var/lib: | Create the necessary directories under /var/lib: | ||
| - | mkdir -p / | + | |
| - | mkdir / | + | mkdir / |
| - | mkdir -p / | + | mkdir -p / |
| - | mkdir -p / | + | mkdir -p / |
| Then move the config directory from /etc to / | Then move the config directory from /etc to / | ||
| - | mv /etc/bind / | + | |
| Create a symlink to the new config directory from the old location (to avoid problems when bind is upgraded in the future): | Create a symlink to the new config directory from the old location (to avoid problems when bind is upgraded in the future): | ||
| - | ln -s / | + | |
| Make null and random devices, and fix permissions of the directories: | Make null and random devices, and fix permissions of the directories: | ||
| - | mknod / | + | |
| - | mknod / | + | mknod / |
| - | chmod 666 / | + | chmod 666 / |
| - | chown -R bind:bind / | + | chown -R bind:bind / |
| - | chown -R bind:bind / | + | chown -R bind:bind / |
| - | We need to modify the startup script / | + | We need to modify the startup script / |
| - | vi / | + | |
| [...] | [...] | ||
| - | SYSLOGD=" | + | |
| [...] | [...] | ||
| Restart the logging daemon: | Restart the logging daemon: | ||
| - | / | + | |
| Start up BIND, and check / | Start up BIND, and check / | ||
| - | / | + | |