From owner-freebsd-questions Mon Dec 30 6:21: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 50D9D37B401 for ; Mon, 30 Dec 2002 06:21:23 -0800 (PST) Received: from mcesr.etat.lu (dynamic4.etat.lu [194.154.200.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28E3E43EC5 for ; Mon, 30 Dec 2002 06:21:22 -0800 (PST) (envelope-from didier.wiroth@mcesr.etat.lu) Received: from [148.110.43.149] (HELO lucifer) by mcesr.etat.lu (CommuniGate Pro SMTP 3.5.9) with ESMTP-TLS id 697327 for freebsd-questions@FreeBSD.ORG; Mon, 30 Dec 2002 15:13:07 +0100 Reply-To: From: "Didier Wiroth" To: Subject: how to use ndc when running in bind in a sandbox Date: Mon, 30 Dec 2002 15:21:02 +0100 Organization: MCESR Message-ID: <000101c2b00e$aeb874b0$952b6e94@lucifer> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal 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 Hey, (i'm new to freebsd +/- a few month) I'm experimenting with freebsd and I have setup bind running in a sandbox and followed the exact step mentionned here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/dns.html Section 19.10.8 Running named in a Sandbox 1) I've created the same /etc/namedb/etc/named.conf like mentionned there and also created the following two steps: 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. Since the contents of /var/run are deleted on boot, if this is something that you find useful you may wish to add this command to root's crontab, making use of the @reboot option. See crontab(5) for more information regarding this. 2) And also added the following lines to the named.conf: controls { unix "/var/run/ndc" perm 0600 owner 0 group 0; }; Here is some info + the output of ndc! Every command is runned as "root"! dns# ll total 2 -rw-r--r-- 1 bind bind 4 Dec 30 11:39 named.pid srw------- 1 root wheel 0 Dec 30 11:39 ndc dns# pwd /etc/namedb/var/run dns# ndc reload ndc: error: ctl_client: evConnect(fd 3): No such file or directory ndc: error: cannot connect to command channel (/var/run/ndc) What am I missing? What do I have to modify to be able to use ndc? Thanks a lot Didier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message