Ales Komarek | 882ac7b | 2014-07-14 10:47:56 +0200 | [diff] [blame] | 1 | |
2 | # Bind DNS service | ||||
3 | |||||
Ales Komarek | fbfa168 | 2014-09-22 11:31:14 +0200 | [diff] [blame] | 4 | ## Sample pillars |
Ales Komarek | 882ac7b | 2014-07-14 10:47:56 +0200 | [diff] [blame] | 5 | |
Ales Komarek | 712343b | 2014-09-22 11:36:17 +0200 | [diff] [blame] | 6 | bind: |
7 | server: | ||||
8 | enabled: true | ||||
9 | zone: | ||||
10 | sub.domain.com: | ||||
Filip Pytloun | 52aa75d | 2016-02-26 17:14:54 +0100 | [diff] [blame^] | 11 | ttl: 86400 |
12 | root: "hostmaster@domain.com" | ||||
Ales Komarek | 712343b | 2014-09-22 11:36:17 +0200 | [diff] [blame] | 13 | type: master |
Ales Komarek | ce71bf9 | 2014-09-30 11:35:30 +0200 | [diff] [blame] | 14 | records: |
15 | - name: @ | ||||
16 | type: A | ||||
17 | ttl: 7200 | ||||
18 | value: 192.168.0.5 | ||||
Ales Komarek | 712343b | 2014-09-22 11:36:17 +0200 | [diff] [blame] | 19 | 1.168.192.in-addr.arpa: |
20 | type: master | ||||
Ales Komarek | ce71bf9 | 2014-09-30 11:35:30 +0200 | [diff] [blame] | 21 | notify: false |
Filip Pytloun | faf8bbc | 2016-02-26 16:32:20 +0100 | [diff] [blame] | 22 | slave.domain.com: |
23 | type: slave | ||||
24 | notify: true | ||||
25 | masters: | ||||
Filip Pytloun | 52aa75d | 2016-02-26 17:14:54 +0100 | [diff] [blame^] | 26 | # Masters must be specified by IP address |
27 | - 8.8.8.8 | ||||
28 | - 8.8.4.4 | ||||
Filip Pytloun | faf8bbc | 2016-02-26 16:32:20 +0100 | [diff] [blame] | 29 | dnssec: |
30 | enabled: true | ||||
31 | # Don't hide version | ||||
32 | version: true | ||||
33 | # Allow recursion, better don't on public dns servers | ||||
34 | recursion: | ||||
35 | hosts: | ||||
36 | - localhost | ||||
Ales Komarek | fbfa168 | 2014-09-22 11:31:14 +0200 | [diff] [blame] | 37 | |
Ales Komarek | fbfa168 | 2014-09-22 11:31:14 +0200 | [diff] [blame] | 38 | ## Read more |
Ales Komarek | 2bf4332 | 2014-09-22 13:03:41 +0200 | [diff] [blame] | 39 | |
Ales Komarek | ce71bf9 | 2014-09-30 11:35:30 +0200 | [diff] [blame] | 40 | * https://github.com/theforeman/puppet-dns |
Filip Pytloun | faf8bbc | 2016-02-26 16:32:20 +0100 | [diff] [blame] | 41 | * https://help.ubuntu.com/community/BIND9ServerHowto |