From owner-freebsd-questions Mon May 14 6:31:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clientmail.realtime.co.uk (simian.realtime.co.uk [194.205.134.131]) by hub.freebsd.org (Postfix) with ESMTP id 054EF37B43E for ; Mon, 14 May 2001 06:31:41 -0700 (PDT) (envelope-from waynep@pan.realtime.co.uk) Received: from pan.realtime.co.uk ([194.205.134.207]) by clientmail.realtime.co.uk with esmtp (Exim 3.20 #1) id 14zIRo-0008Bb-01; Mon, 14 May 2001 14:31:40 +0100 Received: from waynep by pan.realtime.co.uk with local (Exim 3.22 #1) id 14zINF-0000bW-00; Mon, 14 May 2001 14:26:57 +0100 From: Wayne Pascoe To: Wayne Pascoe Cc: freebsd-questions@freebsd.org Subject: Solved - Re: named + chroot - logging ? References: <86u22okqy2.fsf@pan.realtime.co.uk> Date: 14 May 2001 14:26:57 +0100 In-Reply-To: <86u22okqy2.fsf@pan.realtime.co.uk> Message-ID: <86lmo0kqn2.fsf@pan.realtime.co.uk> Lines: 27 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Wayne Pascoe writes: > Hi all, > > I'm setting up a DNS server using named. I am starting it as > named -g bind -u bind -t /path/to/jaildir -c /etc/named.conf > > In /path/to/jaildir I have a /etc directory with the named.conf file. > > When I start bind with this, all seems ok. It answers queries on all > of the domains that it is primary for and transfers from other masters > where it is hosting slaves seem ok. But it's not logging when I > restart it or any other time:) Is there any way to still use syslog > for logging even though I'm running in a chroot? If not, where else > and how else can I log? Ok, I was looking in the bind / named docs for the answer. The answer lies in the syslogd man page. Add a -l /path/to/jaildir/dev/log to my syslogd startup and all just magically works. Sorry to have bugged ! :( -- - Wayne Pascoe E-mail: wayne.pascoe@realtime.co.uk Phone : +44 (0) 20 7544 4668 Mobile: +44 (0) 788 431 1675 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message