fix: remove tab and fix indent
This commit is contained in:
parent
200ce8b6b3
commit
3532526a07
3 changed files with 20 additions and 20 deletions
|
@ -5,12 +5,12 @@ include "/etc/bind/named.conf.default-zones";
|
||||||
include "/etc/bind/named.conf.local";
|
include "/etc/bind/named.conf.local";
|
||||||
|
|
||||||
logging {
|
logging {
|
||||||
channel security_file {
|
channel security_file {
|
||||||
file "/var/log/named/security.log" versions 3 size 30m;
|
file "/var/log/named/security.log" versions 3 size 30m;
|
||||||
severity dynamic;
|
severity dynamic;
|
||||||
print-time yes;
|
print-time yes;
|
||||||
};
|
};
|
||||||
category security {
|
category security {
|
||||||
security_file;
|
security_file;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
{% for zone, value in bind_zones.iteritems() %}
|
{% for zone, value in bind_zones.iteritems() %}
|
||||||
|
|
||||||
zone "{{ zone }}" IN {
|
zone "{{ zone }}" IN {
|
||||||
type master;
|
type master;
|
||||||
{% if 'dnssec' in value and value.dnssec %}
|
{% if 'dnssec' in value and value.dnssec %}
|
||||||
file "/etc/bind/zones/db.{{ zone }}.signed";
|
file "/etc/bind/zones/db.{{ zone }}.signed";
|
||||||
{% else %}
|
{% else %}
|
||||||
file "/etc/bind/zones/db.{{ zone }}";
|
file "/etc/bind/zones/db.{{ zone }}";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if 'allow_transfer' in value and value.dnssec %}
|
{% if 'allow_transfer' in value and value.dnssec %}
|
||||||
allow-transfer {
|
allow-transfer {
|
||||||
{% for ip in value.allow_transfer %}
|
{% for ip in value.allow_transfer %}
|
||||||
{{ ip }};
|
{{ ip }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
directory "/var/cache/bind";
|
directory "/var/cache/bind";
|
||||||
|
|
||||||
dnssec-enable yes;
|
dnssec-enable yes;
|
||||||
dnssec-validation yes;
|
dnssec-validation yes;
|
||||||
dnssec-lookaside auto;
|
dnssec-lookaside auto;
|
||||||
|
|
||||||
auth-nxdomain no; # conform to RFC1035
|
auth-nxdomain no; # conform to RFC1035
|
||||||
listen-on { {% if bind_listen_ipv4 %}any{% else %}none{% endif %}; };
|
listen-on { {% if bind_listen_ipv4 %}any{% else %}none{% endif %}; };
|
||||||
listen-on-v6 { {% if bind_listen_ipv6 %}any{% else %}none{% endif %}; };
|
listen-on-v6 { {% if bind_listen_ipv6 %}any{% else %}none{% endif %}; };
|
||||||
|
|
||||||
version none;
|
version none;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue