include "/etc/bind/rndc.key";

// These files were present in the Debian-based container,
// but are not present in the new Alpine-based bind9 image.
// include "/etc/bind/named.conf.options";
// include "/etc/bind/named.conf.local";
// include "/etc/bind/named.conf.default-zones";

controls {
	inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
};

statistics-channels {
        inet 127.0.0.1 port 8053 allow { 127.0.0.1; };
};

zone "test" {
	type master;
	allow-transfer { any; };
	zone-statistics full;
	file "/etc/bind/db.test";
};

logging {
	channel transfers {
		file "/var/log/bind/transfers" versions 3 size 10M;
		print-time yes;
		severity info;
	};
	channel notify {
		file "/var/log/bind/notify" versions 3 size 10M;
		print-time yes;
		severity info;
	};
	channel dnssec {
		file "/var/log/bind/dnssec" versions 3 size 10M;
		print-time yes;
		severity info;
	};
	channel query {
		file "/var/log/bind/query" versions 5 size 10M;
		print-time yes;
		severity info;
	};
	channel general {
		file "/var/log/bind/general" versions 3 size 10M;
		print-time yes;
		severity info;
	};

	channel slog {
		syslog security;
		severity info;
	};

	category xfer-out { transfers; slog; };
	category xfer-in { transfers; slog; };
	category notify { notify; };

	category lame-servers { general; };
	category config { general; };
	category default { general; };
	category security { general; slog; };
	category dnssec { dnssec; };

	// category queries { query; };
};
