C.2. Instructions for BIND 9Here's how to compile and install BIND 9 on your Linux host. (At the time of this writing, 9.3.2 is the latest version.) C.2.1. Get the Source CodeAs with BIND 8, you must get the source code first. And again, this requires FTP'ing 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 250 CWD command successful. At this point, you should check to see what is the latest version available by doing a dir command. At the time of this writing, 9.3.2 is the latest version. ftp> cd 9.3.2 250 CWD command successful. ftp> get bind-9.3.2.tar.gz local: bind-9.3.2.tar.gz remote: bind-9.3.2.tar.gz 200 PORT command successful. 150 Opening BINARY mode data connection for bind-9.3.2.tar.gz (4673603 bytes). 226 Transfer complete. 4673603 bytes received in 92.4 secs (35 Kbytes/sec) ftp> quit 221 Goodbye. C.2.2. Unpack the Source CodeUse the tar command to uncompress and untar the compressed tar file: % tar zxvf bind-9.3.2.tar.gz Unlike the BIND 8 distribution, this creates a bind-9.3.2 subdirectory in your working directory for all the BIND source code. (BIND 8 distributions always unpacked everything into the working directory.) The bind-9.3.2 subdirectory will have subdirectories called:
C.2.3. Run configure, and Build EverythingAlso 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! |