Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2001 10:41:18 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Peter Brezny <peter@black.purplecat.net>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: running two instances of bind
Message-ID:  <20010412104118.C24582@fw.wintelcom.net>
In-Reply-To: <Pine.BSF.4.05.10104121222240.6017-100000@black.purplecat.net>; from peter@black.purplecat.net on Thu, Apr 12, 2001 at 12:58:04PM -0400
References:  <Pine.BSF.4.05.10104121222240.6017-100000@black.purplecat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Peter Brezny <peter@black.purplecat.net> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010412104118.C24582>