This shows you the differences between two versions of the page.
chrooted_dns [2007/01/30 14:31] adam Codified |
chrooted_dns [2016/11/25 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== How to set up chrooted DNS on Ubuntu Dapper ===== | ||
- | |||
- | Taken from [[http:// | ||
- | |||
- | Run | ||
- | |||
- | apt-get install bind9 | ||
- | |||
- | For security reasons we want to run BIND chrooted so we have to do the following steps: | ||
- | |||
- | / | ||
- | |||
- | Edit the file ''/ | ||
- | |||
- | Modify the line: '' | ||
- | |||
- | vi / | ||
- | |||
- | OPTIONS=" | ||
- | # Set RESOLVCONF=no to not run resolvconf | ||
- | RESOLVCONF=yes | ||
- | |||
- | Create the necessary directories under /var/lib: | ||
- | |||
- | mkdir -p / | ||
- | mkdir / | ||
- | mkdir -p / | ||
- | mkdir -p / | ||
- | |||
- | 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): | ||
- | |||
- | ln -s / | ||
- | |||
- | Make null and random devices, and fix permissions of the directories: | ||
- | |||
- | mknod / | ||
- | mknod / | ||
- | chmod 666 / | ||
- | chown -R bind:bind / | ||
- | chown -R bind:bind / | ||
- | |||
- | We need to modify the startup script / | ||
- | |||
- | vi / | ||
- | |||
- | [...] | ||
- | SYSLOGD=" | ||
- | [...] | ||
- | |||
- | Restart the logging daemon: | ||
- | |||
- | / | ||
- | |||
- | Start up BIND, and check / | ||
- | |||
- | / | ||