From owner-freebsd-questions@FreeBSD.ORG Sun Feb 8 02:57:06 2004 Return-Path: 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 B56A516A4CE for ; Sun, 8 Feb 2004 02:57:06 -0800 (PST) Received: from mail012.syd.optusnet.com.au (mail012.syd.optusnet.com.au [211.29.132.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id B849743D3F for ; Sun, 8 Feb 2004 02:57:05 -0800 (PST) (envelope-from tfrank@optushome.com.au) Received: from marvin.home.local (c211-28-241-189.eburwd5.vic.optusnet.com.au [211.28.241.189])i18AumS27203; Sun, 8 Feb 2004 21:56:51 +1100 Received: by marvin.home.local (Postfix, from userid 1001) id 5FB083DF; Sun, 8 Feb 2004 21:56:48 +1100 (EST) Date: Sun, 8 Feb 2004 21:56:48 +1100 From: Tony Frank To: Chad M Stewart Message-ID: <20040208105648.GB92622@marvin.home.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: Starting two instances of bind - method? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2004 10:57:06 -0000 Hi there, On Sat, Feb 07, 2004 at 01:45:10PM -0500, Chad M Stewart wrote: > I want to run two instances of Bind 9 on the same box. Both will be > chrooted and have their own IPs. At some point I may choose to put > them in jails, but for now no. One step at a time. :) > > I'm wondering what suggestions people might have for getting each > started up during the normal boot process. I see the options in > /etc/defaults/rc.conf and could put my own stuff in /etc/rc.conf but as > far as I can tell that would only work for a single instance. How > would I get the other instance to start up? The same binary can be > used for both, just different configuration files and chroots. Your biggest issue is that unless you are using separate IP for each instance of bind, you will have problems as both will by default need to use port 53 for DNS service. Perhaps you want to investigate the use of Bind9 view function which lets you show different data to different clients. The ISC homepage for bind is an excellent resource: http://www.isc.org/index.pl?/sw/bind/ As is the "DNS and BIND" book by Albitz & Liu from Oreilly. Regards, Tony