aboutsummaryrefslogtreecommitdiff
path: root/bind/zones.yaml
blob: 85fc86376484524ef87e67fd3e4f96ccc2263615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
dynamic-acls:
  all-masters:
    generator: servers

  internal-keys:
    generator: keys
    filter: "*-internal"

  external-keys:
    generator: keys
    filter: "*-external"

static-acls:
  internal-nets:
  - 172.16.0.0/16                          # SEA1 (and AWS)
  - 172.17.0.0/16                          # SEA2
  - 172.18.0.0/16                          # FKL1
  - 172.19.0.0/16                          # SEA4
  - 172.20.0.0/16                          # ORD1
  - 172.21.0.0/16                          # Mobile Network
  - 23.149.16.0/24                         # Pomona ARIN Delegation
  - 192.168.255.0/24                       # Local Docker Bridge
  - 2602:0803:4000::/40                    # Pomona ARIN Delegation
  - 2600:1f14:f39:e000::/56                # PDX1
  - 2600:1f16:33:500::/56                  # CMH1
  - 2a05:d01c:7ba:b800::/56                # LHR1

servers:
  172.16.18.52:                              # PDX1 Legacy Primary
    type: primary
    ips:
    - 50.112.45.116                          # PDX1 Gateway External Legacy
    - 54.148.70.70                           # PDX1 Gateway External
    - 172.16.18.73                           # PDX1 Gateway Internal Legacy
    - 2600:1f14:f39:e000:9fb5:8745:4eec:28b8 # PDX1 Gateway
    forwarders:
      amazonaws.com:
      - 172.16.16.2
      internal:
      - 172.16.16.2

  172.20.0.53:                               # ORD1 Secondary
    type: secondary
    key: ord1-transfer

  172.16.35.10:                              # CMH1 Legacy Secondary
    type: secondary
    key: us-east-2-transfer
    forwarders:
      amazonaws.com:
      - 172.16.32.2
      internal:
      - 172.16.32.2

  172.16.66.181:                             # LHR1 Legacy Secondary
    type: secondary
    key: eu-west-2-transfer

views:
  external:
    match-clients:
    - external-keys
    - "!internal-keys"
    - "!internal-nets"
    - any

    raw-include: |
      rate-limit {
          responses-per-second 15;
          exempt-clients {
              internal-nets;
          };
      };

  internal:
    match-clients:
    - "!external-keys"
    - internal-nets
    - internal-keys
    - localhost

    raw-include: |
      response-policy {
        zone "dns-policy.crute.me" log true;
      };

      # https://www.mail-archive.com/bind-users@lists.isc.org/msg25350.html
      server 63.150.72.5 { send-cookie no; }; # sauthns1.qwest.net
      server 208.44.130.121 { send-cookie no; }; # sauthns2.qwest.net.

zones:
  - name: amazonaws.com
    type: forward-only
    master-views:
    - internal
    in-views:
    - internal

  - name: internal
    type: forward-only
    master-views:
    - internal
    in-views:
    - internal

  # 2602:0803:4000::/40
  - name: 0.4.3.0.8.0.2.0.6.2.ip6.arpa
    master-views:
    - external
    allow-update-keys:
    - as398223-net
    - crute-me

  # 24.149.16.0/24
  - name: 16.149.23.in-addr.arpa
    master-views:
    - external
    allow-update-keys:
    - as398223-net

  # Global IPv4 Reverse Zone
  # 172.16.0.0/16
  - name: 16.172.in-addr.arpa
    master-views:
    - internal
    in-views:
    - internal
    allow-update-keys:
    - crute-me
    - sea1-dhcpd-key

  # FKL1 IPv4 Reverse Zone
  # 172.18.0.0/16
  - name: 18.172.in-addr.arpa
    master-views:
    - internal
    in-views:
    - internal
    allow-update-keys:
    - fkl1-crute-me
    - fkl1-dhcpd-key

  # SEA4 IPv4 Reverse Zone
  # 172.19.0.0/16
  - name: 19.172.in-addr.arpa
    master-views:
    - internal
    in-views:
    - internal
    allow-update-keys:
    - crute-me

  - name: dns-policy.crute.me
    master-views:
    - internal
    in-views:
    - internal

    # This is an RPZ policy zone, nothing should be querying it
    # except BIND internals. Also the zone most be manually
    # updated and reloaded to allow leaving comments and
    # preventing errors.
    allow-query:
    - none

  - name: crute.us
    master-views:
    - external
    allow-update-keys:
    - crute-us

  - name: crute.me
    master-views:
    - external
    - internal
    allow-update-keys:
    - crute-me

  - name: sea1.crute.me
    master-views:
    - internal
    in-views:
    - internal
    allow-update-keys:
    - sea1-crute-me
    - crute-me
    - sea1-dhcpd-key

  - name: fkl1.crute.me
    master-views:
    - internal
    in-views:
    - internal
    allow-update-keys:
    - fkl1-crute-me
    - fkl1-dhcpd-key

  - name: crute.org
    master-views:
    - external
    allow-update-keys:
    - crute-org

  - name: crute.dev
    master-views:
    - external
    allow-update-keys:
    - crute-dev

  - name: softgroupcorp.com
    master-views:
    - external
    allow-update-keys:
    - softgroupcorp-com

  - name: pomonaconsulting.com
    master-views:
    - external
    allow-update-keys:
    - pomonaconsulting-com

  - name: pomonaconsulting.net
    master-views:
    - external
    allow-update-keys:
    - pomonaconsulting-net

  - name: as398223.net
    master-views:
    - external
    allow-update-keys:
    - as398223-net

  - name: 59erdiner.com
    master-views:
    - external
    allow-update-keys:
    - 59erdiner-com

  - name: leavenworthsnowmobilerentals.com
    master-views:
    - external
    allow-update-keys:
    - leavenworthsnowmobilerentals-com

  - name: lakewenatcheecabins.net
    master-views:
    - external
    allow-update-keys:
    - lakewenatcheecabins-net

  - name: frompythonimportpodcast.com
    master-views:
    - external
    allow-update-keys:
    - frompythonimportpodcast-com