lib/testlab/provisioners/templates/bind/bind.erb in testlab-1.0.1 vs lib/testlab/provisioners/templates/bind/bind.erb in testlab-1.1.0
- old
+ new
@@ -8,14 +8,17 @@
// 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 !@bind[:forwarders].nil? -%>
forwarders {
- 8.8.8.8;
- 8.8.4.4;
+<% @bind[:forwarders].flatten.compact.uniq.each do |forwarder| -%>
+ <%= forwarder %>;
+<% end -%>
};
+<% 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;