]> git.llucax.com Git - software/pymin.git/blob - services/dns/templates/named.conf
Move services outside the "static" pymin modules structure (refs #27).
[software/pymin.git] / services / dns / templates / named.conf
1 options {
2         directory "/var/lib/named";
3
4 % if isp_dns1 or isp_dns2:
5         forward first;
6         forwarders {
7 % if isp_dns1:
8         ${isp_dns1};
9 % endif
10 % if isp_dns2:
11                 ${isp_dns2};
12 % endif
13         };
14 % endif
15         listen-on-v6 { none; };
16 % if bind_addr1 or bind_addr2:
17     listen-on {
18 % if bind_addr1:
19                 ${bind_addr1};
20 % endif
21 % if bind_addr2:
22                 ${bind_addr2};
23
24 % endif
25     };
26 % endif
27         pid-file "/var/run/named/named.pid";
28 };
29
30 zone "." IN {
31         type hint;
32         file "root.hint";
33 };
34
35 zone "localhost" IN {
36         type master;
37         file "localhost.zone";
38         allow-update { none; };
39         notify no;
40 };
41
42 zone "127.in-addr.arpa" IN {
43         type master;
44         file "127.0.0.zone";
45         allow-update { none; };
46         notify no;
47 };
48
49 % for zone in zones:
50 zone "${zone.name}" IN {
51         type master;
52         file "${zone.name}.zone";
53         allow-update { none; };
54         notify no;
55 };
56
57 % endfor