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 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