|
1 | 1 | default[:bind9][:enable_ipv6] = true |
2 | 2 |
|
3 | | -# Allow all clients to query the nameserver, no recursion |
4 | | -default[:bind9][:allow_query] = nil |
5 | | -default[:bind9][:allow_recursion] = "none" |
| 3 | +# Allow only local clients to query the nameserver, with recursion |
| 4 | +default[:bind9][:allow_query] = ["localnets", "localhost"] |
| 5 | +default[:bind9][:allow_recursion] = ["localnets", "localhost"] |
6 | 6 |
|
7 | 7 | # Don:t allow to mess with zone files by default |
8 | | -default[:bind9][:allow_transfer] = "none" |
| 8 | +default[:bind9][:allow_transfer] = ["none"] |
9 | 9 | default[:bind9][:allow_update] = nil |
10 | 10 |
|
11 | | -default[:bind9][:enable_forwarding] = false |
12 | | -default[:bind9][:forwarders] = [ "4.4.4.4", "8.8.8.8" ] |
| 11 | +# default forwarders @ Google |
| 12 | +default[:bind9][:enable_forwarding] = true |
| 13 | +default[:bind9][:forwarders] = ["8.8.8.8", "8.8.4.4"] |
13 | 14 |
|
14 | 15 | case platform |
15 | 16 | when "centos","redhat","fedora","scientific","amazon" |
16 | 17 | default[:bind9][:config_path] = "/etc/named" |
17 | | - default[:bind9][:config_file] = "/etc/named.conf" |
18 | | - default[:bind9][:options_file] = "/etc/named/named.conf.options" |
19 | | - default[:bind9][:local_file] = "/etc/named/named.conf.local" |
20 | | - default[:bind9][:data_path] = "/var/named" |
| 18 | + default[:bind9][:config_file] = "/etc/named.conf" |
| 19 | + default[:bind9][:options_file] = "/etc/named/named.conf.options" |
| 20 | + default[:bind9][:local_file] = "/etc/named/named.conf.local" |
| 21 | + default[:bind9][:data_path] = "/var/named" |
| 22 | + default[:bind9][:log_path] = "/var/log/bind" |
21 | 23 | default[:bind9][:user] = "named" |
| 24 | +when "smartos" |
| 25 | + default[:bind9][:config_path] = "/opt/local/etc" |
| 26 | + default[:bind9][:options_file] = "/opt/local/etc/named.conf.options" |
| 27 | + default[:bind9][:local_file] = "/opt/local/etc/named.conf.local" |
| 28 | + default[:bind9][:data_path] = "/var/named" |
| 29 | + default[:bind9][:log_path] = "/var/log/named" |
| 30 | + default[:bind9][:user] = "root" |
22 | 31 | else |
23 | 32 | default[:bind9][:config_path] = "/etc/bind" |
24 | | - default[:bind9][:options_file] = "/etc/bind/named.conf.options" |
25 | | - default[:bind9][:local_file] = "/etc/bind/named.conf.local" |
26 | | - default[:bind9][:data_path] = "/var/cache/bind" |
| 33 | + default[:bind9][:options_file] = "/etc/bind/named.conf.options" |
| 34 | + default[:bind9][:local_file] = "/etc/bind/named.conf.local" |
| 35 | + default[:bind9][:data_path] = "/var/cache/bind" |
| 36 | + default[:bind9][:log_path] = "/var/log/named" |
27 | 37 | default[:bind9][:user] = "bind" |
28 | 38 | end |
0 commit comments