From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 12:36:08 2003 Return-Path: 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 7489916A4BF for ; Mon, 8 Sep 2003 12:36:08 -0700 (PDT) Received: from webm1.global.net.uk (webm1.global.net.uk [80.189.94.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id B470143FE1 for ; Mon, 8 Sep 2003 12:36:07 -0700 (PDT) (envelope-from jre@globalnet.co.uk) Received: from localhost ([127.0.0.1] helo=webm1.global.net.uk) by webm1.global.net.uk with esmtp (Exim 3.36 #6) id 19wRny-0001UF-00; Mon, 08 Sep 2003 20:36:06 +0100 Content-Disposition: inline Content-Transfer-Encoding: binary Mime-Version: 1.0 From: John Ekins To: freebsd-questions , Charlie Schluting Content-Type: text/plain X-Mailer: Global Webmail X-Origin: 195.137.100.169 Message-Id: Date: Mon, 08 Sep 2003 20:36:06 +0100 Subject: Re: Bind query logging stops after a logrotate. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 19:36:08 -0000 Hello Charlie, On Mon, 8 Sep 2003 12:04 , Charlie Schluting sent: > >FBSD 5.1: >Using Bind9.2.2, and I have query logging turned on: > >logging { > channel "querylog" { file "/var/log/query.lo~g"; print-time yes; }; > category queries { querylog; }; >}; > >After a logrotate, it stops logging completely. The permissions are >correct, and all I have to do to make it start logging again is: "rndc >reload". > >Anyone heard of this? Any ideas? You could use the built in log rotation in Bind. Change your log line to, for example: file "/var/log/query.log" print-time yes; versions 5 size 10m; >TIA, > >-Charlie Cheers, John. ---- Message sent via Global Webmail - http://www.global.net.uk/