Sixsh00ter
May 6th, 2009, 11:11 PM
Ubuntu ver 8.04.1 and Bind ver 9.4.2
I've set this up as a primary dns server, Bind is the only thing running on it, no gui, etc. I followed the default settings so I have a named.conf, named.conf.options, and named.conf.local file.
I have a log file I labeled as named.log in this path /var/log/bind. I'm using logrotate to rotate out the file.
My problem is that after syslogd restarts in the morning. My named.log file don't start logging info until I restart Bind. The new named.log file gets created and the old files rotate out and compress. All of the other log files in /var/log, syslog, messages, mail, etc, rotate out and compress like they should, after syslogd restarts.
Anyone have a suggestion on how I can solve this problem? I know that I could restart Bind using Cron but I shouldn't have to.
Below are snips of the files I'm using.
I named this one 'bind' and it's in the directory /etc/logrotate.d
/var/log/bind/named.log {
missingok
daily
create 644 bind bind
rotate 7
dateext
compress
}
// Beginning of Logging named.conf.local
logging {
channel audit_log {
file "/var/log/bind/named.log";
// severity debug 3;
print-time yes;
};
channel xfer_in_log {
file "/var/log/xferin.log";
severity debug 3;
print-time yes;
};
channel xfer_out_log {
file "/var/log/xferout.log";
severity debug 3;
print-time yes;
};
category security { audit_log; };
category config { audit_log; };
category resolver { audit_log; };
category xfer-in { xfer_in_log; };
category xfer-out { xfer_out_log; };
category notify { audit_log; };
category client { audit_log; };
category network { audit_log; };
category update { audit_log; };
category queries { audit_log; };
category lame-servers { null; };
// End of logging.
};
I've set this up as a primary dns server, Bind is the only thing running on it, no gui, etc. I followed the default settings so I have a named.conf, named.conf.options, and named.conf.local file.
I have a log file I labeled as named.log in this path /var/log/bind. I'm using logrotate to rotate out the file.
My problem is that after syslogd restarts in the morning. My named.log file don't start logging info until I restart Bind. The new named.log file gets created and the old files rotate out and compress. All of the other log files in /var/log, syslog, messages, mail, etc, rotate out and compress like they should, after syslogd restarts.
Anyone have a suggestion on how I can solve this problem? I know that I could restart Bind using Cron but I shouldn't have to.
Below are snips of the files I'm using.
I named this one 'bind' and it's in the directory /etc/logrotate.d
/var/log/bind/named.log {
missingok
daily
create 644 bind bind
rotate 7
dateext
compress
}
// Beginning of Logging named.conf.local
logging {
channel audit_log {
file "/var/log/bind/named.log";
// severity debug 3;
print-time yes;
};
channel xfer_in_log {
file "/var/log/xferin.log";
severity debug 3;
print-time yes;
};
channel xfer_out_log {
file "/var/log/xferout.log";
severity debug 3;
print-time yes;
};
category security { audit_log; };
category config { audit_log; };
category resolver { audit_log; };
category xfer-in { xfer_in_log; };
category xfer-out { xfer_out_log; };
category notify { audit_log; };
category client { audit_log; };
category network { audit_log; };
category update { audit_log; };
category queries { audit_log; };
category lame-servers { null; };
// End of logging.
};