2013-09-03 15:51:19 -06:00
|
|
|
bind:
|
|
|
|
lookup:
|
|
|
|
pkgs:
|
|
|
|
- bind
|
2015-08-11 11:21:05 +02:00
|
|
|
service: named
|
2013-09-03 15:51:19 -06:00
|
|
|
|
|
|
|
bind:
|
|
|
|
config:
|
2014-01-03 15:57:10 -08:00
|
|
|
tmpl: salt://bind/files/debian/named.conf
|
2013-09-03 15:51:19 -06:00
|
|
|
user: root
|
|
|
|
group: named
|
|
|
|
mode: 640
|
2014-11-20 10:45:44 -08:00
|
|
|
options:
|
2016-03-22 09:29:31 +01:00
|
|
|
allow-recursion: '{ any; }' # Never include this on a public resolver
|
2014-01-03 15:57:10 -08:00
|
|
|
|
2016-03-03 09:51:39 +01:00
|
|
|
# force bind to serve only one IP protocol (ipv4: 4, ipv6: 6). omitting this reverts to binds default of both.
|
|
|
|
protocol: 4
|
|
|
|
|
|
|
|
# For Debian based systems:
|
|
|
|
# If set to True, the default-zones configuration will be enabled. Defaults to False.
|
|
|
|
default_zones: True
|
2016-03-29 13:37:14 +02:00
|
|
|
# For Debian based systems:
|
|
|
|
# Include any additional configuration file(s) in named.conf
|
|
|
|
includes:
|
|
|
|
- /some/additional/named.conf
|
2015-11-02 09:40:51 +08:00
|
|
|
|
2014-01-03 15:57:10 -08:00
|
|
|
bind:
|
2014-10-16 10:54:02 +00:00
|
|
|
keys:
|
|
|
|
"core_dhcp":
|
|
|
|
secret: "YourSecretKey"
|
2014-01-03 15:57:10 -08:00
|
|
|
configured_zones:
|
|
|
|
sub.domain.com:
|
|
|
|
type: master
|
|
|
|
notify: False
|
|
|
|
1.168.192.in-addr.arpa:
|
|
|
|
type: master
|
|
|
|
notify: False
|
2015-04-02 18:11:01 +02:00
|
|
|
allow-transfer:
|
|
|
|
- 1.1.1.1
|
2016-03-03 09:51:39 +01:00
|
|
|
- 2.2.2.2
|
2014-10-16 10:54:02 +00:00
|
|
|
dynamic.domain.com:
|
|
|
|
type: master
|
|
|
|
allow-update: "key core_dhcp"
|
2016-01-09 08:12:21 +00:00
|
|
|
notify: True
|
|
|
|
sub.anotherdomain.com:
|
|
|
|
type: forward
|
|
|
|
forwarders:
|
|
|
|
- 10.9.8.7
|
2016-03-03 09:51:39 +01:00
|
|
|
- 10.9.8.5
|
2016-04-18 13:46:31 +00:00
|
|
|
sub.forwardonlydomain.com:
|
|
|
|
type: forward
|
|
|
|
forward: only
|
|
|
|
forwarders:
|
|
|
|
- 10.9.8.8
|
|
|
|
- 10.9.8.9
|
2015-03-22 22:07:22 +01:00
|
|
|
configured_views:
|
|
|
|
myview1:
|
|
|
|
match_clients:
|
|
|
|
- client1
|
|
|
|
- client2
|
|
|
|
configured_zones:
|
|
|
|
my.zone:
|
|
|
|
type: master
|
|
|
|
notify: False
|
2015-03-22 23:26:35 +01:00
|
|
|
update_policy:
|
|
|
|
- "grant core_dhcp name dns_entry_allowed_to_update. ANY"
|
2016-03-03 10:01:56 +01:00
|
|
|
configured_acls:
|
|
|
|
my_net:
|
|
|
|
- 127.0.0.0/8
|
|
|
|
- 10.20.0.0/16
|
2014-01-03 15:57:10 -08:00
|
|
|
|
2015-02-19 23:17:11 +01:00
|
|
|
bind:
|
|
|
|
available_zones:
|
|
|
|
sub.domain.org:
|
|
|
|
file: db.sub.domain.org
|
|
|
|
masters: "192.168.0.1;"
|