Can't create a log file
Paul Banta
paulbanta at yahoo.com
Mon Dec 19 23:04:27 UTC 2005
I suppose this should be obvious, but...
I've got Redhat Enterprise 4 running. In named.conf I've got the
following:
logging {
channel tango_log{
file "/var/log/named/tango.log" versions 3 size 250k;
severity debug;
print-time yes;
print-severity yes;
print-category yes;
};
category default{
tango_log;
};
};
When I start named I see this in /var/messages:
Dec 19 16:30:30 zeus named: named startup succeeded
Dec 19 16:30:30 zeus named[4720]: listening on IPv4 interface eth0,
192.168.1.19#53
Dec 19 16:30:30 zeus named[4720]: command channel listening on
127.0.0.1#953
Dec 19 16:30:30 zeus named[4720]: command channel listening on ::1#953
Dec 19 16:30:30 zeus named[4720]: logging channel 'tango_log' file
'/var/log/named/tango.log': file not found
Dec 19 16:30:30 zeus named[4720]: isc_log_open
'/var/log/named/tango.log' failed: file not found
The file is there. I had to create the named directory in /var/log and
touch tango.log to create the file. I then set the owner of the
directory and file to named.
Thanks in advance for the help.
-Paul
More information about the bind-users
mailing list