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 | ||||
Filip Pytloun | 5299d07 | 2016-10-06 11:23:21 +0200 | [diff] [blame^] | 9 | key: |
10 | keyname: | ||||
11 | secret: xyz | ||||
12 | algorithm: hmac-sha512 | ||||
Ales Komarek | 712343b | 2014-09-22 11:36:17 +0200 | [diff] [blame] | 13 | zone: |
14 | sub.domain.com: | ||||
Filip Pytloun | 52aa75d | 2016-02-26 17:14:54 +0100 | [diff] [blame] | 15 | ttl: 86400 |
16 | root: "hostmaster@domain.com" | ||||
Ales Komarek | 712343b | 2014-09-22 11:36:17 +0200 | [diff] [blame] | 17 | type: master |
Ales Komarek | ce71bf9 | 2014-09-30 11:35:30 +0200 | [diff] [blame] | 18 | records: |
19 | - name: @ | ||||
20 | type: A | ||||
21 | ttl: 7200 | ||||
22 | value: 192.168.0.5 | ||||
Ales Komarek | 712343b | 2014-09-22 11:36:17 +0200 | [diff] [blame] | 23 | 1.168.192.in-addr.arpa: |
24 | type: master | ||||
Ales Komarek | ce71bf9 | 2014-09-30 11:35:30 +0200 | [diff] [blame] | 25 | notify: false |
Filip Pytloun | faf8bbc | 2016-02-26 16:32:20 +0100 | [diff] [blame] | 26 | slave.domain.com: |
27 | type: slave | ||||
28 | notify: true | ||||
29 | masters: | ||||
Filip Pytloun | 52aa75d | 2016-02-26 17:14:54 +0100 | [diff] [blame] | 30 | # Masters must be specified by IP address |
31 | - 8.8.8.8 | ||||
32 | - 8.8.4.4 | ||||
Filip Pytloun | faf8bbc | 2016-02-26 16:32:20 +0100 | [diff] [blame] | 33 | dnssec: |
34 | enabled: true | ||||
35 | # Don't hide version | ||||
36 | version: true | ||||
37 | # Allow recursion, better don't on public dns servers | ||||
38 | recursion: | ||||
39 | hosts: | ||||
40 | - localhost | ||||
Ales Komarek | fbfa168 | 2014-09-22 11:31:14 +0200 | [diff] [blame] | 41 | |
Ales Komarek | fbfa168 | 2014-09-22 11:31:14 +0200 | [diff] [blame] | 42 | ## Read more |
Ales Komarek | 2bf4332 | 2014-09-22 13:03:41 +0200 | [diff] [blame] | 43 | |
Ales Komarek | ce71bf9 | 2014-09-30 11:35:30 +0200 | [diff] [blame] | 44 | * https://github.com/theforeman/puppet-dns |
Filip Pytloun | faf8bbc | 2016-02-26 16:32:20 +0100 | [diff] [blame] | 45 | * https://help.ubuntu.com/community/BIND9ServerHowto |