Re: Question about Bind
Hi, Thank you all for putting up with me. Everythings working now and both bind and apache start on boot up. Lisa Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Question about Bind
Hi Folks, I seem to have basically screwed things up, so maybe I can get some help getting straightened out. For a long time, I ran apache 2 and bind 8.2.5 on FreeBSD 3.2. Granted 3.2 is old, my server was getting older, so I set up a new box and installed FreeBSD 5.3 I did not realise installing FreeBSD would automatically install Bind 9.3. I figured if I needed to run bind I'ld have to install it. I didn't want to make too many changes at once so I installed bind 8.4 from ports. Now I seem to have both bind 8.4 and bind 9.3 installed. Probably not a good situation. What I suppose I ought to do is to uninstall the bind 8.4 and keep the bind 9.3. How do I do that? I have never worked with ports before (although I think I'll like it once I get used to it). Also - and this is a biggie. named and apache do not start on bootup and I NEED this to happen. I have asked for help on this on this list and on the bind usenet group and implemented the syggestions I got but if I reboot the box named and apache do not start. I have to start these manually. My /etc/rc.conf looks like this: # This file now contains just the overrides from /etc/defaults/rc.conf. # Please make all changes to this file, not to /etc/defaults/rc.conf. # Enable network daemons for user convenience. # Created: Thu Sep 15 14:11:28 2005 # -- sysinstall generated deltas -- # Thu Sep 15 09:29:00 2005 # Created: Thu Sep 15 09:29:00 2005 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter=63.162.128.1 hostname=netlink.jellico.com ifconfig_fxp0=inet 63.162.128.4 netmask 255.255.254.0 inetd_enable=YES linux_enable=YES usbd_enable=YES apache_enable=YES named_enable=YES named_program=/usr/local/sbin/named named_flags=-u bind -g bind -c /usr/local/etc/named.conf When I reboot I see this in /var/log/messages: Sep 21 17:02:00 netlink named[291]: starting (/usr/local/etc/named.conf). named 8.4.4 Thu Sep 15 16:42:34 EDT 2005 [EMAIL PROTECTED]:/usr/ports/dns/ bind84/work/src/bin/named Sep 21 17:02:00 netlink named[291]: limit files set to fdlimit (1024) Sep 21 17:02:00 netlink named[291]: can't open '/usr/local/etc/named.conf' Sep 21 17:02:00 netlink named[291]: can't open '/usr/local/etc/named.conf' So I log on, start named manually and it starts: Sep 21 17:02:14 netlink su: lisa to root on /dev/ttyp0 Sep 21 17:02:52 netlink named[495]: starting (/usr/local/etc/named.conf). named 8.4.4 Thu Sep 15 16:42:34 EDT 2005 [EMAIL PROTECTED]:/usr/ports/dns/ bind84/work/src/bin/named Sep 21 17:02:52 netlink named[495]: limit files set to fdlimit (1024) Sep 21 17:02:53 netlink named[496]: Ready to answer queries. What is wrong here? I'm sorry to keep bugging you guys but I need to get this fixed. Also: I have the Complete FreeBSD third edition, but I don't think it is going to be as useful for FreeBSD 5.3 as it was for FreeBSD 3.2. Reccomendations for a good book to help me with the 5.3?? Thank you so much, Lisa Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Question about Bind
Lisa Casey writes: Now I seem to have both bind 8.4 and bind 9.3 installed. Probably not a good situation. True. :-) What I suppose I ought to do is to uninstall the bind 8.4 and keep the bind 9.3. How do I do that? I have never worked with ports before (although I think I'll like it once I get used to it). 1) Make a copy of the bind 9 configuration directory. 2) Uninstall the bind 8 port. 3) Rebuild world per Handbook chapter 20.4. This will reinstall bind 9. Also - and this is a biggie. named and apache do not start on bootup and I NEED this to happen. I have asked for help on this on this list and on the bind usenet group and implemented the syggestions I got but if I reboot the box named and apache do not start. I have to start these manually. When I reboot I see this in /var/log/messages: Sep 21 17:02:00 netlink named[291]: starting (/usr/local/etc/named.conf). named 8.4.4 Thu Sep 15 16:42:34 EDT 2005 [EMAIL PROTECTED]:/usr/ports/dns/ bind84/work/src/bin/named Sep 21 17:02:00 netlink named[291]: limit files set to fdlimit (1024) Sep 21 17:02:00 netlink named[291]: can't open '/usr/local/etc/named.conf' Sep 21 17:02:00 netlink named[291]: can't open '/usr/local/etc/named.conf' Assuming the file esists, this smells like a permissions issue. May we see a directory liting for the file, like this: -rwx-- 1 root wheel 3346 Sep 19 01:19 named.conf As for apache, may we see a directory listing for everything in /usr/local/etc/rc.d? Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about Bind
Lisa Casey wrote: Hi Folks, I did not realise installing FreeBSD would automatically install Bind 9.3. I figured if I needed to run bind I'ld have to install it. I didn't want to make too many changes at once so I installed bind 8.4 from ports. Now I seem to have both bind 8.4 and bind 9.3 installed. Probably not a good situation. Base and port versions can be on the same box, but I suspect you need to turn off the default chroot in rc.conf if you're going to run 8.4. Check the named variables in /etc/defaults/rc.conf. What I suppose I ought to do is to uninstall the bind 8.4 and keep the bind 9.3. How do I do that? I have never worked with ports before (although I think I'll like it once I get used to it). pkg_deinstall bind Also - and this is a biggie. named and apache do not start on bootup and I NEED this to happen. I have asked for help on this on this list and on the bind usenet group and implemented the syggestions I got but if I reboot the box named and apache do not start. I have to start these manually. apache_enable=YES Try apache2_enable=YES named_enable=YES named_program=/usr/local/sbin/named named_flags=-u bind -g bind -c /usr/local/etc/named.conf Again, grep /etc/defaults/rc.conf for the named items and adjust according to the version you plan to run. The above would probably work for 8.4 if you add: named_chrootdir=#Chroot directory (or not to auto-chroot it) The Handbook also has a new section on BIND 9 and 5.3. Hope that helps. Ron Wilhoite ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]