DekGenius.com
I l@ve RuBoard Previous Section Next Section

C.2 Instructions for BIND 9.1.0

Here's how to compile and install BIND 9.1.0 on your Linux host.

C.2.1 Get the Source Code

As with BIND 8.2.3, you've got to get the source code first. And again, this requires FTPing to ftp.isc.org :

% cd /tmp
% ftp ftp.isc.org.
Connected to isrv4.pa.vix.com.
220 ProFTPD 1.2.1 Server (ISC FTP Server) [ftp.isc.org]
Name (ftp.isc.org.:user): ftp
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

Change to the right directory and get the file you need:

ftp> cd /isc/bind9/9.1.0/
250 CWD command successful.
ftp> get bind-9.1.0.tar.gz
local: bind-9.1.0.tar.gz remote: bind-9.1.0.tar.gz
200 PORT command successful.
150 Opening BINARY mode data connection for bind-9.1.0.tar.gz (3299471 bytes).
226 Transfer complete.
3299471 bytes received in 92.4 secs (35 Kbytes/sec)
ftp> quit
221 Goodbye.

C.2.2 Unpack the Source Code

Use the tar command to uncompress and untar the compressed tar file:

% tar zxvf bind-9.1.0.tar.gz

Unlike the BIND 8.2.3 distribution, this will create a bind-9.1.0 subdirectory of your working directory for all of the BIND source code. (BIND 8 distributions always unpacked everything into the working directory.) The bind-9.1.0 subdirectory will have subdirectories called:

bin

Source code for all BIND binaries, including named.

contrib

Contributed tools.

doc

Documentation for BIND, including the invaluable Administrator Resource Manual.

lib

Source code for libraries used by BIND.

make

Makefiles.

C.2.3 Run Configure and Build Everything

Also unlike BIND 8, BIND 9 uses the near-miraculous configure script to determine the appropriate includes and compiler settings. Read through the README file to determine whether you need any special settings. configure supports command-line options that allow you to build without threads, use a different installation directory, and much more. To run configure :

% ./configure

Or, if you need to disable threads, for example, run:

% ./configure disable-threads

To build BIND, type:

% make all

The source code should compile without errors. To install BIND, type this as root:

# make install

That's all there is!

    I l@ve RuBoard Previous Section Next Section