From owner-freebsd-questions@FreeBSD.ORG Mon Dec 24 00:15:08 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 AFCC916A500 for ; Mon, 24 Dec 2007 00:15:08 +0000 (UTC) (envelope-from jhorne@dfwlp.org) Received: from pollux.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id 9155113C4D5 for ; Mon, 24 Dec 2007 00:15:08 +0000 (UTC) (envelope-from jhorne@dfwlp.org) Received: from miaplacidus.dfwlp.com (miaplacidus.dfwlp.com [192.168.125.80]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id lBO0F3ud036179; Sun, 23 Dec 2007 18:15:03 -0600 (CST) (envelope-from jhorne@dfwlp.org) Message-ID: <476EFA07.4010306@dfwlp.org> Date: Sun, 23 Dec 2007 18:15:03 -0600 From: Jonathan Horne User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: QADMOS , freebsd-questions@freebsd.org 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> In-Reply-To: <476EE526.2000501@free.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on pollux.dfwlp.com Cc: 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:15:08 -0000 QADMOS wrote: > Gelsema, P (Patrick) a écrit : >> On Sun, December 23, 2007 23:04, QADMOS wrote: >> >>> Jonathan Horne a écrit : >>> >>>> 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 this >>>>> >>>>> error message : >>>>> > rndc: connect failed: 127.0.0.1#953: connection refused >>>>> >>>>> I've reviewed my conf files but frankly i couldn't see what was >>>>> wrong. >>>>> I've actually rewritten them from scratch several times to really >>>>> check >>>>> that nothing was missing and couldn't see anything was wrong. The >>>>> localhost.rev file is configured correctly. I've also tried to >>>>> regenerate new rndc.keys and edit named.conf accordingly but to no >>>>> avail. >>>>> >>>>> I've also considered a possible file permissions in /etc/namedb >>>>> and in >>>>> /var/run/named issue but that didn't yield much either. >>>>> >>>>> Finally the biggest trouble is that nothing is logged in any log >>>>> file ! >>>>> nothing in /var/log/messages nothing in /var/log/all.log nothing >>>>> anywhere so i'm really confused here about what direction to >>>>> investigate. >>>>> >>>>> Has anyone ever encountered such an issue ? >>>>> >>>>> Thx in advance for any help. >>>>> >>>>> >>>> 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="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 ? > > In any case thx a lot for your help :) the entries in the rc.conf are there for system security. [something] might be installed, but its not supposed to be allowed to run unless the system admin knows about it. otherwise, there is always 'forcestart' intead of 'start'. cheers, -- Jonathan Horne http://www.dfwlp.org jhorne@dfwlp.org