LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bind categories (https://www.linuxquestions.org/questions/linux-newbie-8/bind-categories-834475/)

aloisius-a 09-25-2010 03:50 PM

bind categories
 
Hi,

to implement a quite complicated configuration of bind (rel. 9.7.1-P2) I need to perform a complete logging so, following the suggestions of BIND 9 Administrator Reference Manual, I inserted in the file named.conf the lines for channels and the corresponding lines for categories, but while almost all categories give the expected results the category "client" doesn't give any log and I am wondering the reason.
I used, for this category the following lines for channel and category:

logging {
............
channel client_processing {
file "/var/log/named/processing.log";
print-time yes;
severity debug;
};
.............
category client {
client_processing;
};
..............
};

I would like a suggestion to overcome this problem

aloisius-a

bathory 09-26-2010 03:21 AM

Hi,

The category client is used for debugging, so it's useless in a normal bind operation.
Here is what is logged for a query when the debug level is set to 3:
Quote:

26-Sep-2010 11:18:39.178 client 127.0.0.1#37566: UDP request
26-Sep-2010 11:18:39.178 client 127.0.0.1#37566: query
26-Sep-2010 11:18:39.178 client 127.0.0.1#37566: replace
26-Sep-2010 11:18:39.178 client @0x841ec0: create
26-Sep-2010 11:18:39.178 client @0x841ec0: udprecv
26-Sep-2010 11:18:39.382 client 127.0.0.1#37566: send
26-Sep-2010 11:18:39.382 client 127.0.0.1#37566: sendto
26-Sep-2010 11:18:39.382 client 127.0.0.1#37566: senddone
26-Sep-2010 11:18:39.383 client 127.0.0.1#37566: next
26-Sep-2010 11:18:39.383 client 127.0.0.1#37566: endrequest
If you want client logging you should use:
Code:

channel client_processing {
file "/var/log/named/processing.log";
print-time yes;
severity debug 3;

Regards


All times are GMT -5. The time now is 02:42 PM.