From owner-freebsd-questions@FreeBSD.ORG Thu Sep 22 03:07:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44F5C16A41F for ; Thu, 22 Sep 2005 03:07:06 +0000 (GMT) (envelope-from ronw@bals.org) Received: from bal.bals.org (bals.org [207.90.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD7AC43D45 for ; Thu, 22 Sep 2005 03:07:05 +0000 (GMT) (envelope-from ronw@bals.org) Received: from [192.168.0.35] (ronw.bals.org [192.168.0.35]) (authenticated bits=0) by bal.bals.org (8.13.5/8.13.5) with ESMTP id j8M372ZB001016 for ; Wed, 21 Sep 2005 23:07:02 -0400 (EDT) (envelope-from ronw@bals.org) Message-ID: <43321F56.90008@bals.org> Date: Wed, 21 Sep 2005 23:04:54 -0400 From: Ron Wilhoite User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <001d01c5bef4$82565200$d580a23f@lisac> In-Reply-To: <001d01c5bef4$82565200$d580a23f@lisac> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0 (bal.bals.org [192.168.0.2]); Wed, 21 Sep 2005 23:07:02 -0400 (EDT) Subject: Re: Question about Bind X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2005 03:07:06 -0000 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