Having trouble with logging syntax

2011-03-03 Thread Nate Homier
I got my logging setup but named-checkconf is spitting out an error.

$named-checkconf /home/nate/named.conf.local
/home/nate/named.conf.local:11: missing ';' before '3'
/home/nate/named.conf.local:11: unknown option '3'

I'm pretty sure we don't put an ; after version.  I can't see anything
wrong with my config.  All my ; look to be in place.  I'm using Ubuntu
10.04.  This is strictly a resolver server on my personal PC at home.

My logging setup.

logging {
channel query.log {
file /var/log/query.log version; 3 size 5m;
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
category lame-servers { null; };
category default   { syslog; };
};
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


RE: Having trouble with logging syntax

2011-03-03 Thread Todd Snyder
Change:
file /var/log/query.log version; 3 size 5m;

to:
file /var/log/query.log versions 3 size 5m;

-Original Message-
From: bind-users-bounces+tsnyder=rim@lists.isc.org 
[mailto:bind-users-bounces+tsnyder=rim@lists.isc.org] On Behalf Of Nate 
Homier
Sent: Thursday, March 03, 2011 3:30 PM
To: bind-users@lists.isc.org
Subject: Having trouble with logging syntax

I got my logging setup but named-checkconf is spitting out an error.

$named-checkconf /home/nate/named.conf.local
/home/nate/named.conf.local:11: missing ';' before '3'
/home/nate/named.conf.local:11: unknown option '3'

I'm pretty sure we don't put an ; after version.  I can't see anything
wrong with my config.  All my ; look to be in place.  I'm using Ubuntu
10.04.  This is strictly a resolver server on my personal PC at home.

My logging setup.

logging {
channel query.log {
file /var/log/query.log version; 3 size 5m;
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
category lame-servers { null; };
category default   { syslog; };
};
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

-
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Having trouble with logging syntax

2011-03-03 Thread Warren Kumari


On Mar 3, 2011, at 3:30 PM, Nate Homier wrote:


I got my logging setup but named-checkconf is spitting out an error.

$named-checkconf /home/nate/named.conf.local
/home/nate/named.conf.local:11: missing ';' before '3'
/home/nate/named.conf.local:11: unknown option '3'

I'm pretty sure we don't put an ; after version.


Erm, but there is one in your example -- just wanted to make sure you  
knew...


Anyway, I think it is 'versions' (plural), not 'version' (singular)


W


 I can't see anything
wrong with my config.  All my ; look to be in place.  I'm using Ubuntu
10.04.  This is strictly a resolver server on my personal PC at home.

My logging setup.

logging {
channel query.log {
file /var/log/query.log version; 3 size 5m;
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
category lame-servers { null; };
category default   { syslog; };
};
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users



--
Hope is not a strategy.
  --  Ben Treynor, Google


___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Having trouble with logging syntax

2011-03-03 Thread Torinthiel
Dnia 2011-03-03 13:30 Nate Homier napisał(a):

I got my logging setup but named-checkconf is spitting out an error.

$named-checkconf /home/nate/named.conf.local
/home/nate/named.conf.local:11: missing ';' before '3'
/home/nate/named.conf.local:11: unknown option '3'

I'm pretty sure we don't put an ; after version.  I can't see anything
wrong with my config.  All my ; look to be in place.  I'm using Ubuntu
10.04.  This is strictly a resolver server on my personal PC at home.

My logging setup.

logging {
channel query.log {
file /var/log/query.log version; 3 size 5m;

that would by file /var/log/query.log version 3 size 5m;
You want 3 versions, so why separate keyword from its parameter?
Torinthiel
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: Having trouble with logging syntax

2011-03-03 Thread Nate Homier
On Thu, 2011-03-03 at 21:56 +0100, Torinthiel wrote:
 Dnia 2011-03-03 13:30 Nate Homier napisał(a):
 
 I got my logging setup but named-checkconf is spitting out an error.
 
 $named-checkconf /home/nate/named.conf.local
 /home/nate/named.conf.local:11: missing ';' before '3'
 /home/nate/named.conf.local:11: unknown option '3'
 
 I'm pretty sure we don't put an ; after version.  I can't see anything
 wrong with my config.  All my ; look to be in place.  I'm using Ubuntu
 10.04.  This is strictly a resolver server on my personal PC at home.
 
 My logging setup.
 
 logging {
 channel query.log {
 file /var/log/query.log version; 3 size 5m;
 
 that would by file /var/log/query.log version 3 size 5m;
 You want 3 versions, so why separate keyword from its parameter?
 Torinthiel

That was pointed out to me.  I put the ; in by accident.  And I missed
putting an s at the end of version.  Thanks for the reply.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users