From owner-freebsd-questions@FreeBSD.ORG Sat May 30 12:50:33 2009 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 C883B106566C for ; Sat, 30 May 2009 12:50:33 +0000 (UTC) (envelope-from v.prokofyev@gmail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id 2B1E98FC12 for ; Sat, 30 May 2009 12:50:32 +0000 (UTC) (envelope-from v.prokofyev@gmail.com) Received: by ewy8 with SMTP id 8so3364734ewy.43 for ; Sat, 30 May 2009 05:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=W/NwgIqz0SeDCDERpr0pbbvIIVDqwgLlnDnUzb5GnoU=; b=Dh/ER8jBzm1bIJhKumLrX3o7BSAhujU8cc+hy7ySMfM/qQsI1NIqeSOtrxO+AIFbxQ 3LwtII7NU4/ufXoh7/vLQyfcGT53cqTZLtGVIz1fe9/01BwU4moFtYZ47//u4zsGsXEr 3Ebe/eZZqbw95KbJldb9MxwZqmxdQUbmtyFRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=aBqgROOx65KMmt8C3xaPHiuVHJ6wD10U2DSschAk/D2s/4AuqVVia0dlKffZpxg1VC rWsyfxYweZnLQZrISGQjJCuHjm8qOkv1dlq4lI42EO+tKG2MesZfay9NEHgjiMKTXVOx vKYkZLpEC+oIRQQwiCqg4VcCwuYh6xqfvJuVI= MIME-Version: 1.0 Received: by 10.216.47.213 with SMTP id t63mr1245060web.134.1243687831830; Sat, 30 May 2009 05:50:31 -0700 (PDT) Date: Sat, 30 May 2009 16:50:31 +0400 Message-ID: <46dcef4e0905300550j3e19424bs689a384bb4f97c19@mail.gmail.com> From: Prokofyev Vladislav To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD 7.0-RELEASE-p12 bind9 log files not found 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: Sat, 30 May 2009 12:50:34 -0000 Hello, I have setup FreeBSD recently, can somebody help me with one interesting thing - Bind9 slave DNS server, everything is works great, but I got a problem with extended logging of xfer, etc. Bind9 started in chroot: root 788 0.0 0.1 3156 1004 ?? Ss Fri01AM 0:02.10 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -s bind 30792 0.0 1.2 16212 12864 ?? Is 4:10PM 0:00.23 /usr/sbin/named -t /var/named -u bind Configuration of logging channels from named.conf: logging { channel "xfer" { file "/var/named/var/log/xfer.log" versions 3 size 10m; print-time yes; print-severity yes; severity info; }; channel "lame" { file "/var/named/var/log/lame.log" versions 2 size 10m; print-time yes; print-severity yes; severity info; }; channel "config" { file "/var/named/var/log/conf.log" versions 3 size 10m; print-time yes; print-severity yes; severity info; }; channel "security" { file "/var/named/var/log/security.log" versions 3 size 10m; print-time yes; print-severity yes; severity info; }; category "xfer-in" { "xfer"; }; category "xfer-out" { "xfer"; }; category "notify" { "xfer"; }; category "lame-servers" { "lame"; }; category "config" { "config"; }; category "security" { "security"; }; category "default" { "default_syslog"; "default_debug"; }; }; Next, I've create files in /var/named/var/log and chown them to bind:wheel (cause of -u bind is defined above): [posix@mgork23-gw /var/named/var/log]$ ls -la total 4 drwxr-xr-x 2 bind wheel 512 May 30 16:09 . drwxr-xr-x 6 root wheel 512 May 21 19:16 .. -rw-r--r-- 1 bind wheel 0 May 30 14:54 conf.log -rw-r--r-- 1 bind wheel 0 May 30 14:55 lame.log -rw-r--r-- 1 bind wheel 0 May 30 14:55 security.log -rw-r--r-- 1 bind wheel 0 May 30 14:54 xfer.log But I get following messages in /var/log/messages: May 30 16:27:42 srv named[31139]: starting BIND 9.4.2 -t /var/named -u bind May 30 16:27:42 srv named[31139]: command channel listening on 127.0.0.1#953 May 30 16:27:42 srv named[31139]: command channel listening on ::1#953 May 30 16:27:42 srv named[31139]: logging channel 'xfer' file '/var/named/var/log/xfer.log': file not found May 30 16:27:42 srv named[31139]: logging channel 'lame' file '/var/named/var/log/lame.log': file not found May 30 16:27:42 srv named[31139]: logging channel 'config' file '/var/named/var/log/conf.log': file not found May 30 16:27:42 srv named[31139]: logging channel 'security' file '/var/named/log/security.log': file not found May 30 16:27:42 srv named[31139]: running May 30 16:27:42 srv named[31139]: isc_log_open '/var/named/var/log/xfer.log' failed: file not found Changing permissions and putting log-files in different places (with changing paths in named.conf of course) has no effect. I see that problem is pretty silly but searching info about this doesn't say something special - I still got "file not found" in /var/messages. Maybe Iam don't understand where files must be placed, so, thanks in advance for everybody who can explain how it works :) VP v.prokofyev@gmail.com