1. 程式人生 > >bind 查詢日誌與一般啟動日誌分離儲存

bind 查詢日誌與一般啟動日誌分離儲存

看手冊,寫了下試驗也成功了

logging{
        channel query_log{
                file "/var/log/named/query.log" versions 3 size 256m;
                #severity warning;
                print-time yes;
                print-severity yes;
                print-category yes;
        };
        category queries{
                query_log;
        };

        channel default_log{
                file "/var/log/named/bind.log" versions 3 size 256m;
                #severity warning;
                print-time yes;
                print-severity yes;
                print-category yes;
        };
        category default{
                default_log;
        };
};

記錄下.....