From owner-freebsd-questions Sun Sep 15 13:49:24 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 270D137B400 for ; Sun, 15 Sep 2002 13:49:22 -0700 (PDT) Received: from nemesis.systems.pipex.net (nemesis.systems.pipex.net [62.241.160.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DA0843E4A for ; Sun, 15 Sep 2002 13:49:20 -0700 (PDT) (envelope-from stacey@Demon.vickiandstacey.com) Received: from Demon (81-86-129-77.dsl.pipex.com [81.86.129.77]) by nemesis.systems.pipex.net (Postfix) with ESMTP id 5884A16007420; Sun, 15 Sep 2002 21:49:16 +0100 (BST) Subject: Re: ndc status error from new named set-up From: Stacey Roberts Reply-To: sroberts@dsl.pipex.com To: Ceri Davies Cc: sroberts@dsl.pipex.com, FreeBSD Questions In-Reply-To: <20020915204052.GA23453@submonkey.net> References: <1032122004.376.10.camel@Demon.vickiandstacey.com> <20020915204052.GA23453@submonkey.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-rmcc6B0jB6Qc/BovwpKj" X-Mailer: Ximian Evolution 1.0.8 Date: 15 Sep 2002 21:49:17 +0100 Message-Id: <1032122958.376.18.camel@Demon.vickiandstacey.com> Mime-Version: 1.0 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 --=-rmcc6B0jB6Qc/BovwpKj Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Gosh, Thanks for the timely reply! I *did* perform run this when setting up bind just now: > # ln -sf /etc/namedb/var/run/ndc /var/run/ndc But I thought that somehow running the command allows me to side-step that issue. Oh well.., I figure that including a command in root's cron is the best way to accomplish this. Do I need to include that symlink command in the cron job, as in: /bin/ln -sf /etc/namedb/var/run/ndc /var/run/ndc Thanks again for your quick response Ceri, hope to hear from you again on what I've put here. Stacey On Sun, 2002-09-15 at 21:40, Ceri Davies wrote: > 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) >=20 > >From the article in the handbook: >=20 > --- > Symlink /var/run/ndc to /etc/namedb/var/run/ndc: >=20 > # ln -sf /etc/namedb/var/run/ndc /var/run/ndc >=20 > 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. > --- >=20 > 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". >=20 > Ceri >=20 > --=20 > you can't see when light's so strong > you can't see when light is gone >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message --=20 Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com --=-rmcc6B0jB6Qc/BovwpKj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQEVAwUAPYTyTJvQeubckvvXAQEJqQf9Evc02LNA6SZIWuaqaDTAbZCMdxJXuvFM uupWA9a/z2b7LHa0V3a83HTzJOcTCu7ZafyY6QsdrQ1lROXPwQ1gQQmFjNKPKpVu cL+8BuziBbm6QDeeEulV7CCqNHcVOqCVPQPI2VMctlE5PFgK+O43C2PC9fwvXEiK d660U2SO8p/kJ+aJY4h29Q4YpDjPAEOAR+jYXFroCa1oql8XmFkfVRpFgsLivPX2 VoStBbDUXvWfnlExHohB1IXge24zM3aeSZUgKSKvDvpnI9dBcIrN6BUwnCYVNp/1 kB3SntWD0knM45fT7emVQ0G9ryDhz7zOHHUVH3+yXZPP2Y3O01tVwg== =7sC9 -----END PGP SIGNATURE----- --=-rmcc6B0jB6Qc/BovwpKj-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message