HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_227
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 227 Packages Bind Homepage: http://www.isc.org/ You must be sure to download: bind-contrib.tar.gz, bind-doc.tar.gz, bind-src.tar.gz Tarballs It is a good idea to make a list of files on the system before you install Bind, and one afterwards, and then compare them using ‘diff’ to find out what file it placed where. Simply run ‘find /* > dns1’ before and ‘find /* > dns2’ after you install the software, and use ‘diff dns1 dns2 > dns’ to get a list of what changed. Compilation Decompress the tarball (tar.gz). [root@deep /]# mkdir /var/tmp/bind [root@deep /]# cp bind-contrib.tar.gz /var/tmp/bind/ [root@deep /]# cp bind-doc.tar.gz /var/tmp/bind/ [root@deep /]# cp bind-src.tar.gz /var/tmp/bind/ We create a directory named “bind” to handle the tar archives and copy them to this new directory. Cd into the new bind directory (cd /var/tmp/bind) and decompress the tar files: [root@deep bind]# tar xzpf bind-contrib.tar.gz [root@deep bind]# tar xzpf bind-doc.tar.gz [root@deep bind]# tar xzpf bind-src.tar.gz Configure and Optimize Edit the Makefile.set file (vi src/port/linux/Makefile.set) and add, modify: 'CC=egcs -D_GNU_SOURCE' 'CDEBUG=-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -march=pentiumpro - fomit-frame-pointer -fno-exceptions’ 'DESTBIN=/usr/bin' 'DESTSBIN=/usr/sbin' 'DESTEXEC=/usr/sbin' 'DESTMAN=/usr/man' 'DESTHELP=/usr/lib' 'DESTETC=/etc' 'DESTRUN=/var/run' 'DESTLIB=/usr/lib/bind/lib' 'DESTINC=/usr/lib/bind/include' 'LEX=flex -8 -I' 'YACC=yacc -d' 'SYSLIBS=-lfl' 'INSTALL=install' 'MANDIR=man' 'MANROFF=cat' 'CATEXT=$$N' 'PS=ps -p' 'AR=ar crus' 'RANLIB=:'