Initial commit for bind, templates for named.conf.* and zones and zone creation.
This commit is contained in:
parent
37e39c5c19
commit
0f21d12012
4 changed files with 119 additions and 2 deletions
32
dns/templates/named.conf.local.erb
Normal file
32
dns/templates/named.conf.local.erb
Normal file
|
@ -0,0 +1,32 @@
|
|||
//
|
||||
// Do any local configuration here
|
||||
//
|
||||
|
||||
acl "xfer" {
|
||||
none; // Allow no transfers. If we have other
|
||||
// name servers, place them here.
|
||||
};
|
||||
|
||||
acl "trusted" {
|
||||
// Place our internal and DMZ subnets in here so that
|
||||
// intranet and DMZ clients may send DNS queries. This
|
||||
// also prevents outside hosts from using our name server
|
||||
// as a resolver for other domains.
|
||||
<% dns_client_networks.each do |network| -%>
|
||||
<%= network %>;
|
||||
<% end -%>
|
||||
localhost;
|
||||
};
|
||||
|
||||
<% dns_zones.each do |zone| -%>
|
||||
zone "<%= zone %>" {
|
||||
type master;
|
||||
file "/etc/bind/db.<%= zone %>";
|
||||
};
|
||||
<% end -%>
|
||||
|
||||
|
||||
// Consider adding the 1918 zones here, if they are not used in your
|
||||
// organization
|
||||
//include "/etc/bind/zones.rfc1918";
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue