DNS Logging Issue!

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

DNS Logging Issue!

Postby refra » Tue Mar 17, 2009 1:38 pm

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:

Postby lambda » Tue Mar 17, 2009 5:12 pm

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!

Postby LinuxFreaK » Wed Mar 18, 2009 9:08 am

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


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 2 guests