DNS Logging Issue!

Taking care of your Linux box.

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:

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 {

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 ?
Posts: 69
Joined: Wed Dec 06, 2006 3:51 pm

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"?
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re: DNS Logging Issue!

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

Dear refra,

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
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest