Quantcast
Channel: Manfaat Sehat
Viewing all articles
Browse latest Browse all 61

Bind9 / NameD logging

$
0
0
To set up Debug-level logging with named / bind9, as root edit the config file (generally at /etc/named.conf) and add this stanza:

logging {
        channel named_log {
                file "/var/log/named.log" versions 3 size 1m;
                severity debug;
                print-category  yes;
                print-severity  yes;
                print-time      yes;
        };

        category default { named_log; };
        category lame-servers { named_log; };
        category update { named_log; };
        category update-security { named_log; };
        category security { named_log; };
};



Create the specified log file:
# touch /var/log/named.log


Set the correct owner:
# chown named /var/log/named.log


Reload your config:
# /etc/init.d/named reload


And watch that file:
# tail -f  /var/log/named.log

Note that, with LogLevel severity set to 'debug', you're going to get a lot of info in that file, which should be limited to 1megabyte per the config, but you may want to change the loglevel or remove logging completely once you've resolved your issue.  More info here from the Debian project.

Viewing all articles
Browse latest Browse all 61

Latest Images

Trending Articles



Latest Images