-
Notifications
You must be signed in to change notification settings - Fork 0
/
named.conf.options.j2
47 lines (40 loc) · 1.43 KB
/
named.conf.options.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
options {
// This is the working directory of the server. Any non-absolute pathnames
// in the configuration files are taken as relative to this directory.
directory "/var/cache/bind";
// Remove (hide) our bind version - no reason to disclose it.
version "";
// Configure the IPs to listen on here.
listen-on { {{ bind_listen_on | join('; ') }}; };
listen-on-v6 { {{ bind_listen_on_v6 | join('; ') }}; };
// If you want to allow only specific hosts to use the DNS server, or allow
// anyone to send queries.
allow-query { {{ bind_allow_query | join('; ') }}; };
// These options should probably have their "safe" default values which
// may then be overridden on a per zone basis instead of here.
allow-transfer {
{% for dest in bind_allow_transfer %}
{{ dest }};
{% endfor %}
};
notify explicit;
{% if bind_also_notify|length > 0 %}
also-notify {
{% for target in bind_also_notify %}
{{ target }};
{% endfor %}
};
{% endif %}
// IP addresses to upstream DNS servers we will query for any domains we
// are not authoritative for.
forwarders {
{% for ip in bind_forwarders %}
{{ ip }};
{% endfor %}
};
// Use the downloaded bind.keys file when validating signed zones.
dnssec-validation {{ bind_dnssec_validation | ternary('yes', 'no') }};
{% if bind_options_raw is defined %}
{{ bind_options_raw | indent(width=4) }}
{%- endif %}
};