From owner-freebsd-questions@FreeBSD.ORG Mon Dec 24 00:27:52 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B23816A478 for ; Mon, 24 Dec 2007 00:27:52 +0000 (UTC) (envelope-from phatbuckett@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id 0C39013C4EB for ; Mon, 24 Dec 2007 00:27:51 +0000 (UTC) (envelope-from phatbuckett@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2387178waf.3 for ; Sun, 23 Dec 2007 16:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=7B02at/i12v85iX8lKrg7jXi2qL336WD6O+qTYGhayo=; b=vY+Exqghto5yy0uQKF0pnajeqlXe+wZWd4vF8hm7GYWzi7++KeLZJRE+MWFMZz8OklJm5eW42HhIGZlJ1c4gE1o+1JqDI/eb/ayj57FQR69Qp2oSp3RKcdk5PCMkddh0DJJOyIer2Xtd6IeuyfGMdSF7EeJx9ooxTDzSxnfVwbk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TzDEKvoxgYhIIOyO1B6yzg9llxF16Kgr7f9HN4aXjPaAIcaZzEJ4pOG62yc2/7GEOrZDOkameR3qOH8LZSkBKb8oH94rfKE4GXJoOPIKs5XfHLxUxFggUqVhlSeHMYoDWlyTmsz6HsrE9aznF3oT+54/D436degeTVXV4p8ML50= Received: by 10.115.60.1 with SMTP id n1mr3058172wak.37.1198456070953; Sun, 23 Dec 2007 16:27:50 -0800 (PST) Received: by 10.114.47.12 with HTTP; Sun, 23 Dec 2007 16:27:50 -0800 (PST) Message-ID: <839aec700712231627k4457c65dx45791c76cd01b2fa@mail.gmail.com> Date: Sun, 23 Dec 2007 17:27:50 -0700 From: "Darren Spruell" To: QADMOS In-Reply-To: <476EE526.2000501@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <476ECA9B.4090805@free.fr> <200712231548.14320.freebsd@dfwlp.com> <476EDB8B.5060301@free.fr> <1642.10.202.77.197.1198448071.squirrel@webmail.superhero.nl> <476EE526.2000501@free.fr> Cc: freebsd-questions@freebsd.org Subject: Re: BIND9 won't start X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Dec 2007 00:27:52 -0000 On Dec 23, 2007 3:45 PM, QADMOS wrote: > Gelsema, P (Patrick) a =E9crit : > > > On Sun, December 23, 2007 23:04, QADMOS wrote: > > > >> Jonathan Horne a =E9crit : > >> > >>> On Sunday 23 December 2007 02:52:43 pm QADMOS wrote: > >>> > >>> > >>>> Hi everyone, > >>>> > >>>> i'm having a hard time with bind9. > >>>> > >>>> I'm trying to set up an authoritative dns server. > >>>> > >>>> Unfortunately when i try to launch it with an 'rndc start' i get thi= s > >>>> > >>>> error message : > >>>> > rndc: connect failed: 127.0.0.1#953: connection refused > >>>> >>>> > >>> do you get same problem with: > >>> > >>> /etc/rc.d/named start > >>> > >> Well i've also tried that actually and when i do that : > >> 1/ nothing is logged > >> 2/ nothing is launched either > >> > > > > Do you have the following in rc.conf? > > > > hulk# cat /etc/rc.conf | grep named > > named_enable=3D"YES" > > > > To me it seems your problem lies in the fact that named is not starting= , > > so rndc can not control anything. > > > > Rgds, > > > > Patrick > > > > > >> there's just no error message despite that the named is not running > >> (checked with ps waux | grep named ) > >> > > Well Patrick i followed your suggestion and rebooted (it didn't do much > after just editing rc.conf) the box and now "/etc/rc.d/named start" > works fine annd named is running, 'rndc' still has the same problem > though (???) > > I'm a bit befuddled though, because i don't understand why it's > necessary to use the named_enable directive to have named running ? I > understand this is necessary if you want the daemon to run at boot time > but why is this necessary if you want to run it manually once the box is > on ? /etc/rc.d/named is the rc script to control (start, stop etc.) named, and this script is "inactive" unless you've specified that named is to be enabled using the named_enable variable. You can get around the need to activate the variable by prefixing your commands with the 'force' keyword (e.g. /etc/rc.d/named forcestart, etc.) Use sockstat(1) to figure out if the control port (953/tcp) is listening. 'sockstat -4l' should show a listener on 127.0.0.1:953. Also, 'start' is not a valid command to rndc. You would have a chicken and egg problem; if named has not been started, then there is no service to handle the start command to rndc. Use the rc script to start named and rndc to control its runtime operation. DS