DNS Logging Issue!

Taking care of your Linux box.
Post Reply
refra
Naik
Posts: 70
Joined: Wed Dec 06, 2006 3:51 pm

DNS Logging Issue!

Post by refra »

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 ?
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

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"?
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: DNS Logging Issue!

Post by LinuxFreaK »

Dear refra,
Salam,
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"
Change ownership of file to the user from which named service is running.

chown named:named /var/named/query.log
/etc/init.d/named restart


Best Regards.
Farrukh Ahmed
Post Reply