Dear Allz,
i configured Bind logging on fedora core 7, but its not working, details are:
/etc/named.conf
logging {
channel query.logging {
file "/var/named/query.log" versions 3 size 50m;
severity warning;
print-category yes;
print-severity yes;
print-time yes;
};
category queries {
query.logging;
};
};
after restart a service i found a following things in /var/log/messages:
"logging channel 'query_logging' file '/var/named/query.log': permission denied"
where is the mistake in my /etc/named.conf ?
DNS Logging Issue!
when a program (vi, cp, mv, anything) says "permission denied" when you try to write or copy a file, what do you think the error means?
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re: DNS Logging Issue!
Dear refra,
Salam,
chown named:named /var/named/query.log
/etc/init.d/named restart
Best Regards.
Salam,
Change ownership of file to the user from which named service is running.refra wrote:after restart a service i found a following things in /var/log/messages: "logging channel 'query_logging' file '/var/named/query.log': permission denied"
chown named:named /var/named/query.log
/etc/init.d/named restart
Best Regards.
Farrukh Ahmed