[en] [fr]

[HowTo] 1.5 | Install Bind

CONTENT_BY

Bind is the most famous DNS server (from Berkley Institute).

To install it:

#apt-get install bind9

As for Apache, let's check and clean the installation. By default, it seems to be ugly. The zone files are in the same folder as the conf files. Let's edit the /etc/bind/named.conf.options file. There i'm used to change the “directory "/var/cache/bind";” in “directory "/var/bind";” but you're not obliged.

Of course we have to create the /var/bind/ directory:

#mkdir /var/bind/

And moving the zone files into it

#mv /etc/bind/db.* /var/bind/

Set the right owner:

#chown bind:bind /var/bind/ -R

Now we have to edit the /etc/bind/zones.rfc1918 file and change the paths (set /var/bind/ instead of /etc/bind/)

And edit the /etc/bind/named.conf file, updating the paths too (just remove the absolute path /etc/bind/db.0 and set db.0 for example)

One last thing, add the allow-recursion {127.0.0.1;}; declaration in the options block in /etc/bind/named.conf.options. It will disallow recursive requests from the others.

We are done. It's cleaner to me.

 

Now let's see chapter 6: Install an FTP server

CONTENT_TITLE_COMMENTS

CONTENT_COMMENTS_THERE_ARE
CONTENT_BTN_POST_A_COMMENT
CONTENT_MSG_NO_COMMENTS