Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bind DNS server log level 1

Status
Not open for further replies.

zacca

Technical User
Dec 25, 2003
333
HK
Hi there,

Would like to ask, for a Bind DNS server, how do I change the log level to more details?

I got a Sun Cobalt RaQ4 machine which already end of life so no more support from Sun. From the default web console, no such configuration available.

Many thanks!
 
Hi Claudius,

Thx for your prompt response. Just checked that my bind version is 8.2.3-c1. Can it still follow the suggestion on that url which is for bind v9?

Many thanks!
 
Hi Claudius,

I added the followings into named.conf

logging{
channel my_file {
file "/var/log/named.log"
severity debug;
print-time yes;
pirnt-severity yes;
print-category yes;
};
category default {my_file;};
category xfer-out {my_file;};
category security {my_file};
};

After I restarted named, I saw nothing logged into /var/log/named.log

Wondering if anything wrong? Million thanks!

 
Notice some syntax errors there. Also you have not specified the debug level. debug 99 for example is the most detailed debugging and debug 1 gives the least debugging info.
So the 3 lines to change in the config you wrote are:

severity debug; change this to
severity debug 99;
(note for the above, I usually use severity info; )

pirnt-severity yes; change this to
print-severity yes;

category security {my_file}; change this to
category security {my_file;};





Claudius (What certifications??)
 
Hi Claudius,

Thanks so much for your help! Changed to the followings:

logging{
channel my_file {
file "/var/log/named.log"
severity debug 99;
print-time yes;
print-severity yes;
print-category yes;
};
category default {my_file;};
category xfer-out {my_file;};
category security {my_file;};
};

I restarted bind using "/etc/rc.d/init.d/named restart"
it returned "new pid is 34567" to me so I hoped done it correctly.

I'll wait & see how it goes.

Many thanks!
 
Hi Claudis,

Would like your help again. It has been a few hours but the log file size still zero....

Wondering what else should I check or do (except to reboot that server)?

Many thanks!
 
Seems you got debug set in the conf file but havn't turned on tracing yet.
Enter the command:
ndc trace

Should all work now. To turn of tracing the command is :
ndc notrace




Claudius (What certifications??)
 
Hi Claudius,

I really dunno what's wrong with my cobalt machine, I typed ndc trace & it returend debug level:1

Half day passed already & named.log still empty?

Where else should I check? Many thanks!

 
Is that dns server actually being used? Try using that dns server to do a query. A simple nslookup or ping will do.



Claudius (What certifications??)
 
Hi Claudius,

Yep, it's working now! thanks so much!
A star for you!

Zacca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top