LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-04-2006, 10:40 AM   #1
laggerific
Member
 
Registered: Jan 2006
Posts: 65

Rep: Reputation: 15
Question BIND logging issues - doesn't seem to want to log


Hey all,

I wasn't sure if this should go into the networking forum, but the issue isn't with the DNS aspect of BIND but more in trying to figure out why it won't write a logfile.

We are using BIND 9.2.4 and we are trying to configure logging so that we can determine what machines are still querying against that particular DNS server, as we would like to retire it. Here is the logging part which is at the end of the named.conf before the rndc.key include:

logging{
channel simple_log {
file "bind.log" versions 3 size 5m;
severity dynamic;
print-time yes;
print-severity yes;
print-category yes;
};
category queries {
simple_log;
};
};

I'm fairly certain that location in the log file doesn't matter, as I believe it parses the entire conf before enacting the logging. The logging config above was mainly copied from some sample configs I found online and then modified to the best of my understanding. As you may see, my understanding of the log config is fairly limited right now, so it could be an obvious mistake to the seasoned BIND pro.

Is there any reason why the above config would produce no bind.log file? Any thoughts on how to troubleshoot this? I tried running it in the foreground with the following command "named -g", which seemed to get me the closest to seeing a log from BIND as I've been able to...unfortunately I get a "not listening on any interfaces" error when I run it that way, and is proven when I try to query against it with nslookup. NSlookup works great when I start the program as a service.

Thanks for any help with this.
 
Old 10-19-2006, 01:10 PM   #2
laggerific
Member
 
Registered: Jan 2006
Posts: 65

Original Poster
Rep: Reputation: 15


Just replying in hopes that someone might have an idea regarding this.
 
Old 10-23-2006, 02:08 PM   #3
laggerific
Member
 
Registered: Jan 2006
Posts: 65

Original Poster
Rep: Reputation: 15
Okay, so I found a very helpful forum discussion here: http://www.fedoraforum.org/forum/sho...5&page=2&pp=15

In there I found this to be very helpful: chown -R named:named /var/named/chroot/etc /var/named/chroot/var
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND - logging file not found buskmann Linux - Networking 6 01-25-2024 12:54 AM
BIND doesn't want to log Le Hara Linux - General 1 06-17-2006 12:16 PM
howto enable logging from BIND 9 on Debian Sarge ? cccc Debian 2 07-07-2005 06:43 PM
pppd logging to /var/log/ppp.log problem mrtwice Linux - Software 1 01-10-2004 05:38 PM
BIND - logging issues thebee Linux - Software 0 06-23-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration