From owner-freebsd-net Thu Apr 12 10:41:23 2001 Delivered-To: freebsd-net@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 1234437B424 for ; Thu, 12 Apr 2001 10:41:20 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f3CHfId14598; Thu, 12 Apr 2001 10:41:18 -0700 (PDT) Date: Thu, 12 Apr 2001 10:41:18 -0700 From: Alfred Perlstein To: Peter Brezny Cc: freebsd-net@FreeBSD.ORG Subject: Re: running two instances of bind Message-ID: <20010412104118.C24582@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from peter@black.purplecat.net on Thu, Apr 12, 2001 at 12:58:04PM -0400 X-all-your-base: are belong to us. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Peter Brezny [010412 09:55] wrote: > I'm attempting to get two instances of bind running on the same machine. > > When I start the second instance, i get this error: > > named[15794]: ctl_server: bind: /var/run/ndc: Address already in use > > However it each instance of named can be found with a ps wax|grep named, > and it appears that each can answer queries. > > I've got separate configurations in separate directories. The named.conf > files specify separate ip addresses for the two instances to listen on. > > I'm starting the instances as follows: > > named -u bind -c /path/to/named.conf1 > named -u bind -c /path/to/named.conf2 > > Any ideas as to why i'm gettin this error? I don't believe that it's > because the ip address is already in use (that error message went away > when i added the 'listen-on { ;}; statements in each named.conf file)... One of the more irritating things to figure out with named: controls { unix "/var/run/ndc-2" perm 0600 owner 0 group 0; }; You want that in your named.conf file, it'll make named use a different control socket for ndc communication. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] Daemon News Magazine in your snail-mail! http://magazine.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message