Installing Bind....
Bind (Berkeley Internet Name Daemon) is maintained by the
Internet Software Consortium.
Bind falls under the GNU freeware copyright, and can be found
at The ISC's Bind Repository.
How to Install on Solaris
Pre Installation...
Assumptions:
-
Your machine is connected to the internet, or you have access to the internet.
-
You have Sun's c compiler installed.
-
Otherwise your Solaris installation is near to vanilla.
-
You know how to use the internet & vi.
-
You have /usr/ccs/bin in your PATH.
-
You have /opt/SUNspro/bin in your PATH.
-
You're using h2n.pl to translate a hosts file to db's, all located
in /var/named
-
You have a perl 5 binary in your PATH.
What to do...
Getting The Necessary Components...
-
FTP the latest source from
ftp://ftp.isc.org/isc/bind/src/cur
-
FTP the Bison Freeware package from http://smc.vnet.net/solaris_2.5_nof.html#bison
-
FTP the Flex Freeware package from http://smc.vnet.net/solaris_2.5_nof.html#flex
-
FTP the Gzip Freeware package from http://smc.vnet.net/solaris_2.5_nof.html#gzip
-
FTP the GNU Patch package from http://smc.vnet.net/solaris_2.5_nof.html#patch
Installing the Components...
-
Install the Gzip package.
-
Translate the package so sun can understand it:
-
pkgtrans ./gzip-1.2.4 /tmp
-
Install the package...
-
Make the package useful...
-
ln -s /opt/FSFgzip/bin/gzip /usr/bin/gzip
-
Install the Bison package.
-
Uncompress the bison package...
-
Translate the package so sun can understand it:
-
pkgtrans ./bison-1.24 /tmp
-
Install the package...
-
Make the package useful...
-
ln -s /opt/FSFbison/bin/bison /usr/bin/bison
-
Install the Flex package.
-
Uncompress the flex package...
-
Translate the package so sun can understand it:
-
pkgtrans ./flex-2.5.2 /tmp
-
Install the package...
-
Make the package useful...
-
ln -s /opt/FSFflex/bin/flex /usr/bin/flex
-
Install the Patch package.
-
Uncompress the patch package...
Translate the package so sun can understand it:
-
pkgtrans ./patch-2.1 /tmp
-
Install the package.
-
Backup the existing patch binary.
-
mv /usr/bin/patch /usr/bin/patch.old
-
Make the package useful...
-
ln -s /opt/FSFpatch/bin/patch /usr/bin/patch
Extracting the source.
-
Make a directory in which to put the bind sources.
-
Copy the source to that directory.
-
cp bind-src.tar.gz /usr/src/bind
-
Uncompress the source.
-
Un-Tar the source.
Patching the files to make it compile for solaris.
-
Download this Patch
-
Change into the directory above the src directory.
-
Patch the source using the diff-bind file.
-
patch -R < diff-bind
-
If it asks questions about "Assume -R", choose [y].
-
If it asks "Patch which file", then you're in the wrong directory.
Compiling the software.
-
Change into the main directory
-
Make The /var/obj/bind directory.
-
Make the standard links.
-
Clean up the directories.
-
Make the dependencies for the .h files.
-
Make the binaries.
-
Install the binaries into their correct places.
-
Backup the existing name daemon.
-
mv /usr/sbin/in.named /usr/bin/in.named.old
-
Link the new binary...
-
ln -s /usr/sbin/named /usr/sbin/in.named
-
Copy the named-bootconf.pl file to the /var/named directory.
-
cp /usr/src/bind_8.1.1/src/bin/named/named-bootconf.pl /var/named
-
Make it executable.
-
chmod 755 /usr/src/bind_8.1.1/src/bin/named/named-bootconf.pl
-
Run the file on your named.boot file, resulting in named.conf.
-
perl named-bootconf.pl < named.boot > named.conf
-
Link /etc/named.conf to /var/named/named.conf
-
ln -s /var/named/named.conf /etc/named.conf
-
Edit /etc/rc2.d/S72inetsvc to reflect the change.
-
Change:
if [ -f /usr/sbin/in.named -a -f /etc/named.boot ]; then
/usr/sbin/in.named; echo "starting internet domain name server."
fi
to
if [ -f /usr/sbin/in.named -a -f /etc/named.conf ]; then
/usr/sbin/in.named; echo "starting internet domain name server."
fi
Lastly - Reboot the machine
When Updating your db's...
-
When you've updated your hosts file (hosts.dns), and you run
the makedbs script, then run the named-bootconf.pl file again.
-
perl named-bootconf.pl < named.boot > named.conf
-
or edit your makedbs script to run the file after making the named.boot file.
Written by Peter A. DeNitto, denitto@llamas.net
Finished on July 30th, 1997