forked from evolix/ansible-roles
Jérémy Lecour
8cbe837147
* queries log can be enabled or disabled * split tasks * check if AppArmor is present * don't install Munin plugin whose data file is not present * remove example ACL in authoritative configuration
40 lines
896 B
Django/Jinja
40 lines
896 B
Django/Jinja
// acl "foo" {
|
|
// ::ffff:192.0.2.21; 192.0.2.21;
|
|
// 2001:db8::21;
|
|
// };
|
|
|
|
options {
|
|
directory "{{ bind_cache_dir }}";
|
|
version "Bingo";
|
|
auth-nxdomain no;
|
|
masterfile-format text;
|
|
statistics-file "{{ bind_statistics_file }}";
|
|
|
|
listen-on-v6 { any; };
|
|
listen-on { any; };
|
|
|
|
allow-query { localhost; };
|
|
allow-recursion { localhost; };
|
|
allow-transfer { localhost; };
|
|
};
|
|
|
|
logging {
|
|
category default { default_file; };
|
|
{% if bind_query_file_enabled | bool %}
|
|
category queries { query_logging; };
|
|
{% endif %}
|
|
|
|
channel default_file {
|
|
file "{{ bind_log_file }}";
|
|
severity info;
|
|
};
|
|
{% if bind_query_file_enabled | bool %}
|
|
channel query_logging {
|
|
file "{{ bind_query_file }}" versions 2 size 128M;
|
|
print-category yes;
|
|
print-severity yes;
|
|
print-time yes;
|
|
};
|
|
{% endif %}
|
|
};
|