1+ # -*- coding: utf-8 -*-
2+ # vim: ft=yaml
3+ ---
14bind :
25 configured_acls : # We have an internal ACL restricted to our
36 internal : # private IP range.
47 - 10.0.0.0/8 # In this case, an ACL for external isn't needed
58 # as that view will be matched by 'any'.
6-
9+
710 # Notice that there is no 'configured_zones' at this indentation level.
811 # That is because when you are using views, the bind service forces all zones to be served via a view.
912 #
1013 # Also note - any other zones defined in any other conf files will either need to be commented out, or
1114 # also served via a view using a file include. If you have other zones being served outside of a view, bind will
1215 # fail to start and give you an error message indicating this. You will likely find these externally-defined zones
1316 # in /etc/named.conf and /etc/named.conf.local
14-
17+
1518 configured_views :
1619 external : # A view called 'external' to match anything except the 'internal' ACL.
1720 match_clients :
@@ -20,11 +23,11 @@ bind:
2023 mydomain.com : # Notice that this value matches on both views.
2124 type : master
2225 file : external.mydomain.com.txt # Specify the file to be used, which must match the file
23- recursion: yes # name of the zone below under available_zones.
24- # This filename also must match the corresponding zone name
26+ recursion : ' yes' # name of the zone below under available_zones.
27+ # This filename also must match the corresponding zone name
2528 # without the .txt extension (and be sure to use .txt as the extension).
26- notify: False
27- dnssec: False
29+ notify : false
30+ dnssec : false
2831
2932 internal : # The 'internal' view that is restricted to the 'internal' ACL.
3033 match_clients :
@@ -33,17 +36,17 @@ bind:
3336 mydomain.com : # Same as above - both views will serve the same zone.
3437 type : master
3538 file : internal.mydomain.com.txt # Different file - matches the internal zone below.
36- # Again, this filename must match the corresponding zone name
39+ # Again, this filename must match the corresponding zone name
3740 # without the .txt extension (and be sure to use .txt as the extension).
38- recursion: yes
39- notify: False
40- dnssec: False
41+ recursion : ' yes'
42+ notify : false
43+ dnssec : false
4144
4245 available_zones :
4346 external.mydomain.com : # Beginning of the 'external' zone definition.
4447 file : external.mydomain.com.txt # The file in which to save this zone's record set - matches the file
4548 # specified in the 'external' view.
46-
49+
4750 soa : # Declare the SOA RRs for the zone
4851 ns : ns1.external.mydomain.com # Required
4952 contact :
[email protected] # Required @@ -67,11 +70,11 @@ bind:
6770 CNAME :
6871 login : portal.mydomain.com.
6972 dashboard : www.mydomain.com.
70-
73+
7174 internal.mydomain.com : # Beginning of the 'internal' zone definition.
7275 file : internal.mydomain.com.txt # The file in which to save this zone's record set - matches the file
7376 # specified in the 'internal' view.
74-
77+
7578 soa : # Declare the SOA RRs for the zone
7679 ns : ns1.mydomain.com # Required
7780 contact :
[email protected] # Required
0 commit comments