From owner-freebsd-net Thu Apr 12 10:19: 9 2001 Delivered-To: freebsd-net@freebsd.org Received: from verdi.nethelp.no (verdi.nethelp.no [158.36.41.162]) by hub.freebsd.org (Postfix) with SMTP id 7D29F37B422 for ; Thu, 12 Apr 2001 10:19:01 -0700 (PDT) (envelope-from sthaug@nethelp.no) Received: (qmail 14045 invoked by uid 1001); 12 Apr 2001 17:18:59 +0000 (GMT) To: peter@black.purplecat.net Cc: freebsd-net@freebsd.org Subject: Re: running two instances of bind From: sthaug@nethelp.no In-Reply-To: Your message of "Thu, 12 Apr 2001 12:58:04 -0400 (EDT)" References: X-Mailer: Mew version 1.05+ on Emacs 19.34.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Thu, 12 Apr 2001 19:18:58 +0200 Message-ID: <14043.987095938@verdi.nethelp.no> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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. Only specifying separate listen addresses may not be enough. You want something like this: options { directory "/etc/namedb/server1"; query-source address a.b.c.d port 4096; transfer-source a.b.c.d; listen-on { a.b.c.d; }; pid-file "/var/run/named-server1.pid"; }; controls { unix "/var/run/ndc-server1" perm 0660 owner 0 group 53; }; and options { directory "/etc/namedb/server2"; query-source address e.f.g.h port 4097; transfer-source e.f.g.h; listen-on { e.f.g.h; }; pid-file "/var/run/named-server2.pid"; }; controls { unix "/var/run/ndc-server2" perm 0660 owner 0 group 53; }; (Slightly obscured from a working server with several named processes.) Steinar Haug, Nethelp consulting, sthaug@nethelp.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message