From owner-freebsd-questions@FreeBSD.ORG Mon Dec 1 07:59:07 2003 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 8CFF716A4CE; Mon, 1 Dec 2003 07:59:07 -0800 (PST) Received: from www.bsdforen.de (housing79.bytecamp.net [212.204.60.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB61843FBF; Mon, 1 Dec 2003 07:58:07 -0800 (PST) (envelope-from grunix@bsdforen.de) Received: from huibuh.encephalon.de (encephalon.de [213.146.112.85]) by www.bsdforen.de (Postfix) with ESMTP id EC06F17051; Mon, 1 Dec 2003 16:58:35 +0100 (CET) Date: Mon, 1 Dec 2003 16:58:19 +0100 From: "Axel S. Gruner" To: Matthew Seaman Message-Id: <20031201165819.49112579.grunix@bsdforen.de> In-Reply-To: <20031129153950.GA1559@happy-idiot-talk.infracaninophile.co.uk> References: <20031129152348.5dc04330.grunix@bsdforen.de> <20031129153950.GA1559@happy-idiot-talk.infracaninophile.co.uk> X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: named (bind) in jail does not start 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: Mon, 01 Dec 2003 15:59:07 -0000 On Sat, 29 Nov 2003 15:39:50 +0000 Matthew Seaman wrote something special: > On Sat, Nov 29, 2003 at 03:23:48PM +0100, Axel S. Gruner wrote: > > /usr/sbin/named > > > > i get this error message: > > > > opensocket_f: bind([0.0.0.0].53): Address already in use > > > > Ok, Port 53 is not in use in the jail nor the hostsystem. > > I think the problem is 0.0.0.0, and i have to bind named on the IP > > of the jail. > > > > I tested same named configuration on the hostsystem, i thought about > > some misconfigration, but on the hostsystem named starts perfectly. > > > > I also tried to start named with -g and -u in the jail, same error. > > > > So, my short question is, how can i run named in the jail? > > Any ideas? > [...] > In bind9 you need to add something like the following to named.conf -- > bind8 will be similar: > > options { > > [...] > > listen-on { > 192.168.1.1; > }; > query-source address 192.168.1.1 port 53; > transfer-source 192.168.1.1 port 53; > notify-source 192.168.1.1 port 53; > }; Yes. Thats it. Thanks a lot. -- asg Die Antwort auf alle Fragen ist 42.