Date: Wed, 15 Oct 97 02:52:52 -0700 From: "Studded" <Studded@dal.net> To: "FreeBSD Questions" <FreeBSD-Questions@freebsd.org>, "FreeBSD-ISP@freebsd.org" <FreeBSD-ISP@freebsd.org> Cc: "Richard Cramer" <rwc@cscfx.sytex.com>, "Eddie Fry" <eddie@wicked.eaznet.com> Subject: Installing BIND 4.9.6 and 8.1.1 in FreeBSD 2.2.x (update) Message-ID: <199710150952.CAA25480@mail.san.rr.com>
next in thread | raw e-mail | index | archive | help
Since I put this file together the first time, CERT has come out with an advisory (CA-97.22.bind) which contains advice that I think is very valid. BIND 8.1.1 has superior binaries, including a much more flexible .conf file. However they haven't yet resolved some problems with the libs and include files, so to pick up the most recent stuff, it's advisable to install 4.9.6 first. The other important development is that FreeBSD 2.2.5-Beta and 3.0-Current now have 4.9.6 in the base system, so a better solution would be to upgrade the whole system. :) If you are actually hosting domains on a nameserver (not just using it as a resolver) then you should also upgrade to BIND 8.1.1. I can still remember the frustration of people telling me "just install it" when I was new to system administration, so I thought I'd put together some instructions for installing the newest versions of BIND since the question has come up a few times now. Also, someone was talking about putting together a port, so hopefully this will save them some time. The only changes I have had to make for either version of BIND are in regards to the man pages, so this is actually pretty simple. However I am not a programmer, so it's possible that there are changes that do have to be made. I doubt this is the case however, since all of the binaries and libs build and work as advertised. I only have 2.2.x systems to work with, so there may be a few details different if you're using something else. Particularly, there are some changes that have to be made to get 8.1.1 installed in the 2.1.x branch of FreeBSD that were recently detailed on both the FreeBSD and bind-users lists, so I won't belabour that. My advice to anyone using 2.1.x is to upgrade to 2.2.5 when it's available, then install BIND 8.1.1, although I realize that's not possible for some people. My hope is that someone from the FreeBSD team will put together all the changes that have to be made, and send them to the bind folks so that we'll have a true port. Installing 4.9.6 (only needed in a pre 2.2.5 system): 1. cd /usr/src/contrib/bind 2. rm -r * 3. ftp://ftp.isc.org/isc/bind/src/4.9.6/bind-4.9.6-REL.tar.gz The 4.9.6 release is all in one package. 4. tar -zxvf *.gz 5. Change these values in the top level Makefile: CATEXT = $$$$N MANROFF = cat MANDIR = man 6. make clean 7. make 8. make install 9. If you don't plan to install 8.1.1, go to /usr/share/man and gzip the new man pages (*.1, *.3, etc.) in man1, man3, man5, man7 and man8. 10. Reboot, and you're done. :) Installing 8.1.1: 1. cd /usr/src/contrib/bind 2. rm -r * 3. ftp://ftp.isc.org/isc/bind/src/8.1.1 This distribution is in 3 files. You want bind-doc.tar.gz and bind-src.tar.gz for sure. The contrib stuff was still almost all for 4.9.6 when I installed 8.1, and I haven't had a chance to look at the contrib stuff for 8.1.1 yet, so I will leave this as an exercise for the reader. :) 4. tar -zxvf *.gz 5. First go into the src directory. All I had to do there was make, then make install and I was in business. 6. Now go into bind/doc/man, and make these changes to the Makefile: MANDIR = man CATEXT = $$N MAN_OWNER = -o bin MAN_GROUP = -g bin MANROFF = cat 7. make clean 8. make 9. make install 10. Go to /usr/share/man and gzip the new man pages as indicated above. 11. If this is the first time installing 8.1x, use named-bootconf.pl in /usr/src/contrib/bind/src/bin/named to convert your /etc/named.boot file to named.conf. 12. Reboot, and you're done. :) If you're installing 8.1.1 on a system that has never had a named running on it, you will want to go to /etc/namedb and run the make-localhost script before you run the named.boot conversion script that comes with BIND. That should set up your localhost domain for you, which is basically the only thing you need to run a resolver-only setup. Any FreeBSD-specific questions should probably be directed to freebsd-questions@freebsd.org. Other comments and suggestions are welcome of course. :) Good luck, Doug *** Proud operator, designer and maintainer of the world's largest *** Internet Relay Chat server. 4,168 clients and still growing. :-) *** Try spider.dal.net on ports 6662-4 (Powered by FreeBSD)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710150952.CAA25480>