User Tools

Site Tools


directadmin:bind-named-custom-query-log

Bind Named Custom Query Log

Tutorial berikut adalah membuat file query log bind/named dengan nama lain agar terpisah dari /var/log/messsages dan anda bisa buat dengan seperti ini

#edit named
nano /etc/named.conf

buat kode seperti ini

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
        channel default_log {
          file "/var/log/named_default" versions 3 size 5m;
          print-time yes;
          print-category yes;
          print-severity yes;
          severity info;
        };
        channel queries_log {
          file "/var/log/named_queries" versions 3 size 5m;
          print-time yes;
          print-category yes;
          print-severity yes;
          severity info;
        };
        category default{
            default_log;
        };
        category queries {
            queries_log;
        };
};

Selamat mencoba.

Sumber :

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
directadmin/bind-named-custom-query-log.txt · Last modified: 2021/05/16 03:46 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki