This repository has been archived by the owner on Sep 29, 2020. It is now read-only.
forked from ajjahn/puppet-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnamed.conf.options.erb
73 lines (61 loc) · 1.85 KB
/
named.conf.options.erb
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable.
// nameservers, you probably want to use them as forwarders...
// Uncomment the following block, and insert the addresses replacing.
// the all-0's placeholder.
<% if @forwarders.size == 0 then -%>
// forwarders {
// 0.0.0.0;
// };
<% else -%>
forwarders {
<% @forwarders.each do |forwarder| -%>
<%= forwarder -%>;
<% end -%>};
<% end -%>
<% if @listen_on.size == 0 then -%>
listen-on { any; };
<% else -%>
listen-on {
<% @listen_on.each do |ipv4_addr| -%>
<%= ipv4_addr -%>;
<% end -%>};
<% end -%>
<% if @listen_on_port -%>
port <%= @listen_on_port %>;
<% end -%>
<% if @allow_recursion.size != 0 then -%>
allow-recursion {
<% @allow_recursion.each do |recursion| -%>
<%= recursion -%>;
<% end -%>
};
<% end -%>
<% if @allow_query.size != 0 then -%>
allow-query {
<% @allow_query.each do |query| -%>
<%= query -%>;
<% end -%>
};
<% end -%>
<% if @check_names_master -%>
check-names master <%= @check_names_master %>;
<% end -%>
<% if @check_names_slave -%>
check-names slave <%= @check_names_slave %>;
<% end -%>
<% if @check_names_response -%>
check-names response <%= @check_names_response %>;
<% end -%>
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};