For When You Can't Have The Real Thing
[ start | index | login ]
start > dns > bind logging

bind logging

Created by dave. Last edited by dave, 14 years and 170 days ago. Viewed 2,973 times. #1
[edit] [rdf]
labels
attachments

Bind Logging

Log to a file with enough information to make it useful. CAUTION: there's no built in log rotation, you get to roll your own.

logging {
        channel named_log {
                file "/var/log/named.log";
                severity debug;
                print-severity yes;
                print-time yes;
                print-category yes;
        };
        category default {
                named_log;
        };
};

Alternatively, just log to syslog and let that handler deal with it. Usually the system has some built in syslog rotation.

logging {
        channel named_log {
                syslog daemon;
                severity debug;
        };
        category default {
                named_log;
        };
};
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt