From 43eb5c971842f23bc1a7650215d9397b0fae9bb9 Mon Sep 17 00:00:00 2001 From: Joachim Tingvold Date: Mon, 21 Mar 2016 17:13:54 +0100 Subject: Add some debug to bind. --- bootstrap/make-named.pl | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'bootstrap') diff --git a/bootstrap/make-named.pl b/bootstrap/make-named.pl index 4812d81..2681506 100755 --- a/bootstrap/make-named.pl +++ b/bootstrap/make-named.pl @@ -56,6 +56,42 @@ options { listen-on-v6 { any; }; }; +logging { + category "default" { "debug"; }; + category "general" { "debug"; }; + category "database" { "debug"; }; + category "security" { "debug"; "stats"; }; + category "config" { "debug"; "stats"; }; + category "resolver" { "debug"; "stats"; }; + category "xfer-in" { "debug"; "stats"; }; + category "xfer-out" { "debug"; "stats"; }; + category "notify" { "debug"; "stats"; }; + category "client" { "debug"; }; + category "unmatched" { "debug"; }; + category "network" { "debug"; }; + category "update" { "debug"; }; + category "queries" { "stats"; }; + category "dispatch" { "debug"; }; + category "dnssec" { "debug"; }; + category "lame-servers" { "debug"; }; + + channel "debug" { + file "/etc/bind/nameddbg" versions 2 size 50m; + print-time yes; + print-category yes; + print-severity yes; + severity debug 9; + }; + + channel "stats" { + file "/etc/bind/namedstats" versions 2 size 50m; + print-time yes; + print-category yes; + print-severity yes; + severity debug 3; + }; +}; + key DHCP_UPDATER { algorithm HMAC-MD5.SIG-ALG.REG.INT; secret $nms::config::ddns_key; -- cgit v1.2.3