LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-20-2002, 10:48 AM   #1
jester_69
Member
 
Registered: May 2002
Location: Sydney Australia
Distribution: Redhat 6.1 & 7.2
Posts: 91

Rep: Reputation: 15
Help with Logging to a file


Hello,

I have moved up to Red Hat 7.2 after i had been running 6.1 for
quite a while. Was running 8.2.3 but have now got 9.2.1

I had saved all my config files but when starting it is not liking the logging options in my named.conf file any longer. It essentially starts but is showing the following in my messages file :-

Jun 21 13:01:27 Echelon named[2214]: logging channel 'my_syslog' file '/var/log/named.log': permission denied
Jun 21 13:01:27 Echelon named[2214]: /etc/named.conf:34: unknown logging category 'panic' ignored
Jun 21 13:01:27 Echelon named[2214]: /etc/named.conf:35: unknown logging category 'packet' ignored
Jun 21 13:01:27 Echelon named[2214]: /etc/named.conf:36: unknown logging category 'eventlib' ignored
Jun 21 13:01:27 Echelon named[2214]: /etc/named.conf:40: unknown logging category 'load' ignored
Jun 21 13:01:27 Echelon named: named startup succeeded


Can anyone see anything that i should now be adding/changing or deleting ?? below

};
logging {
channel my_syslog{
file "/var/log/named.log" versions 3 size 5m;
severity debug;
print-category yes;
print-severity yes;
print-time yes;
};
category default{ my_syslog; };
category panic{ my_syslog; };
category packet{ my_syslog; };
category eventlib{ my_syslog; };
category xfer-in{ my_syslog; };
category xfer-out{ my_syslog; };
category security{ my_syslog; };
category load{ my_syslog; };
};

It had been working fine in the earlier version of bind

Regards

Andrew


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.371 / Virus Database: 206 - Release Date: 14/06/2002
 
Old 06-20-2002, 01:39 PM   #2
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
The categories panic, packet, eventlib and load have been dropped in Bind9. The categories recognized by Bind9 are as follows:

Quote:
default - The default category defines the logging options for those categories where no specific configuration has been defined.

general - The catch-all. Many things still aren't classified into categories, and they all end up here.

database - Messages relating to the databases used internally by the name server to store zone and cache data.

security - Approval and denial of requests.

config - Configuration file parsing and processing.

resolver - DNS resolution, such as the recursive lookups performed on behalf of clients by a caching name server.

xfer-in - Zone transfers the server is receiving.

xfer-out - Zone transfers the server is sending.

notify - The NOTIFY protocol.

client - Processing of client requests.

unmatched - Messages that named was unable to determine the class of or for which there was no matching view. A one line summary is also logged to the client category. This category is best sent to a file or stderr, by default it is sent to the null channel.

network - Network operations.

update - Dynamic updates.

queries - Queries. Using the category queries will enable query logging.

dispatch - Dispatching of incoming packets to the server modules where they are to be processed.

dnssec - DNSSEC and TSIG protocol processing.

lame-servers - Lame servers. These are misconfigurations in remote servers, discovered by BIND 9 when trying to query those servers during resolution.
As far as the error on /var/log/named.log, you know the routine, check file permissions, etc.

Hope this shed some light on your problems. -mk
 
Old 06-21-2002, 04:08 AM   #3
jester_69
Member
 
Registered: May 2002
Location: Sydney Australia
Distribution: Redhat 6.1 & 7.2
Posts: 91

Original Poster
Rep: Reputation: 15
Now that i am running the latest version of bind for RedHat 7.2 can i not restart named with a NDC restart/reload as i used to. I dont find it anywhere as a executable..

Also now that i have made some process with my logging of Bind i am getting the following. Any idea what this all means. I dont know what would be making it time out

Jun 22 03:24:18.556 notify: debug 1: zone eziekiel.com/IN: notify to 198.142.106.21#53 failed: timed out
Jun 22 03:24:24.306 notify: debug 1: zone eziekiel.com/IN: notify to 212.100.224.80#53 failed: timed out
Jun 22 03:24:33.576 notify: debug 1: zone eziekiel.com/IN: notify to 198.142.106.21#53 failed: timed out
Jun 22 03:24:48.596 notify: debug 1: zone eziekiel.com/IN: notify to 198.142.106.21#53 failed: timed out
Jun 22 03:25:03.616 notify: debug 1: zone eziekiel.com/IN: notify to 198.142.106.21#53 failed: timed out
Jun 22 03:25:03.617 notify: debug 1: zone eziekiel.com/IN: notify to 198.142.106.21#53: retries exceeded
 
Old 06-21-2002, 08:32 AM   #4
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
The program name ndc has been changed to rndc, I think. To be sure do:

find / -name \*dnc -print

As far as your errors are concerned, it looks like it's failing on a zone transfer either to or from both 198.142.106.21 and 212.100.224.80. -mk
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND - logging file not found buskmann Linux - Networking 5 05-02-2005 11:33 AM
File Access Logging dman65 Linux - General 3 04-08-2005 01:12 PM
keystroke logging to file? musicman_ace Linux - Software 3 12-12-2004 06:49 AM
how to edit a file without logging in as root? osat3ch Fedora 3 08-21-2004 11:16 PM
Ping - Logging the times to a file. johnsont Programming 2 09-09-2003 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration