From owner-freebsd-questions Sun Sep 15 13:41: 0 2002 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 D367E37B400 for ; Sun, 15 Sep 2002 13:40:58 -0700 (PDT) Received: from rhadamanth.submonkey.net (pc2-cdif2-4-cust102.cdf.cable.ntl.com [80.4.11.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA20B43E6A for ; Sun, 15 Sep 2002 13:40:57 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from setantae by rhadamanth.submonkey.net with local (Exim 4.10) id 17qgCK-0006EC-00; Sun, 15 Sep 2002 21:40:52 +0100 Date: Sun, 15 Sep 2002 21:40:52 +0100 From: Ceri Davies To: sroberts@dsl.pipex.com Cc: FreeBSD Questions Subject: Re: ndc status error from new named set-up Message-ID: <20020915204052.GA23453@submonkey.net> Mail-Followup-To: Ceri Davies , sroberts@dsl.pipex.com, FreeBSD Questions References: <1032122004.376.10.camel@Demon.vickiandstacey.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1032122004.376.10.camel@Demon.vickiandstacey.com> X-message-flag: All your linuxconf-configured redhat are belong to us. User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Sep 15, 2002 at 09:33:22PM +0100, Stacey Roberts wrote: > Hello, > I've just set up, what I hoped would be a caching nameserver in a > sandbox. However, after rebooting, I wanted to test to see that all is > well, and got some errors from running "ndc status": > # ndc status > ndc: error: ctl_client: evConnect(fd 3): No such file or directory > ndc: error: cannot connect to command channel (/var/run/ndc) From the article in the handbook: --- Symlink /var/run/ndc to /etc/namedb/var/run/ndc: # ln -sf /etc/namedb/var/run/ndc /var/run/ndc Note: This simply avoids having to specify the -c option to ndc(8) every time you run it. If this is something that you find useful, you may wish to add this entry to root's crontab, making use of the @reboot option. See crontab(5) for more information regarding this. --- i.e., when you rebooted, /var/run/ndc got deleted, and you need to either remake it, or run ndc with "-c /etc/namedb/var/run/ndc". Ceri -- you can't see when light's so strong you can't see when light is gone To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message