summaryrefslogtreecommitdiff
path: root/templates/named.conf.epp
blob: 7fc042196233bc6e35aff277f50a2d67d99575ed (plain)
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
#
# File managed by Puppet. Local changes WILL be overwritter',
#

options {
  directory "<%= $dns::directory %>";
  forwarders { 8.8.8.8; 8.8.4.4; };
  recursion yes;
  allow-query { any; };
  dnssec-validation yes;

  listen-on-v6 { any; };

  allow-recursion { localnets; localhost; };
};

<%# Equivalent to what rndc-confgen emits %>
include "<%= $dns::rndc_key_file %>";

controls {
  inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };
};

<%# Include remaining stuff %>
include "<%= $dns::zoneconf_dir %>/*.conf";
include "<%= $dns::keyconf_dir %>/*.key";