chiark / gitweb /
distorted.lisp: Add new records for the bug tracking system.
[zones] / distorted.lisp
CommitLineData
e80b4c2d
MW
1;;; Zone file for distorted.org.uk
2
b4d4c18b 3(load "hosts.lisp" :verbose nil)
e80b4c2d 4
b1d5c6c2 5;;;--------------------------------------------------------------------------
aef7892b
MW
6;;; Anycast services.
7
8(defvar *anycast-routable-families* (list :ipv6))
9
10(defzoneparse :anycast (name data rec :prefix prefix :zname zname)
11 (destructuring-bind (any-provider default-provider &rest other-providers)
12 data
13
14 ;; First, the default address. If the anycast network is preferred then
15 ;; this is easy; otherwise we have something complicated to do because
16 ;; IPv6 anycast addresses are globally routable, while IPv4 ones aren't.
17 (if (zone-preferred-subnet-p (car any-provider))
18 (zone-set-address #'rec (cdr any-provider) :make-ptr-p t)
6baf2de2 19 (do-host (addr (cdr any-provider))
aef7892b
MW
20 (let ((family (ipaddr-family addr)))
21 (if (member family *anycast-routable-families*)
22 (zone-set-address #'rec addr
23 :family family :make-ptr-p t)
24 (zone-set-address #'rec (cdr default-provider)
25 :family family :make-ptr-p nil)))))
26
27 ;; Now for all of the others.
28 (dolist (provider (list* any-provider default-provider other-providers))
29 (zone-set-address #'rec (cdr provider)
30 :make-ptr-p (eq provider any-provider)
c9f96590
MW
31 :name (domain-name-concat prefix
32 (zone-parse-host
33 (car provider)
34 zname))))))
aef7892b
MW
35
36;;;--------------------------------------------------------------------------
07fe1e43
MW
37;;; Hostname abbreviations.
38
39(defvar *abbrev-subdomain*
40 (make-domain-name :labels '("abbrev") :absolutep nil))
41(defparameter *abbrev-used* (make-hash-table :test #'equal))
42
43(defzoneparse :abbrev (name data rec :zname zname)
44 (let* ((domain (zone-parse-host data
45 (domain-name-concat *abbrev-subdomain*
46 zname)))
47 (key (princ-to-string domain))
48 (existing (gethash key *abbrev-used*)))
49 (when existing
50 (error "Abbrev collision for ~A between ~A and ~A."
51 domain existing name))
52 (setf (gethash key *abbrev-used*) name)
53 (rec :name domain
54 :type :cname
55 :data name)))
56
57;;;--------------------------------------------------------------------------
b1d5c6c2 58;;; Other definitions.
e80b4c2d
MW
59
60(setf *default-zone-admin* "hostmaster@distorted.org.uk")
2bc217e8 61
ff6c53ad 62(setf *default-zone-source* 'radius.distorted.org.uk.)
e80b4c2d 63
b1d5c6c2
MW
64;;;--------------------------------------------------------------------------
65;;; Main zone definition.
66
e80b4c2d 67(defzone distorted.org.uk
ec4898f9 68
6ef39f28 69 ;; Nameservers.
ff6c53ad 70 :ns #+view/inside ((radius.ns :ip radius)
f0209b9c 71 (precision.ns :ip precision)
1b9508ad 72 (telecaster.ns :ip telecaster)
ff6c53ad
MW
73 (vampire.ns :ip vampire))
74 #-view/inside ((radius.ns :ip radius)
f0209b9c 75 (precision.ns :ip precision)
1b9508ad 76 (telecaster.ns :ip telecaster)
ff6c53ad 77 (mythic-beasts-1.ns :ip mythic-ns1)
4a487d58 78 (mythic-beasts-2.ns :ip mythic-ns2)
ff6c53ad 79 (chiark.ns :ip chiark.greenend.org.uk))
ec4898f9 80
6ef39f28 81 ;; Mail servers.
68db42b5 82 ((@ mail blackhole) :mx mail :srv ((:smtp mail)))
beb363e0 83 ((bugs) :ttl 300 :mx lists :srv ((:smtp bugs)))
68db42b5 84 ((lists) :ttl 300 :mx lists :srv ((:smtp lists)))
ec4898f9 85
69bbb181 86 (stratocaster.20140403._domainkey
8d261a89
MW
87 :dkim ("stratocaster-20140403"
88 :v "DKIM1" :k "rsa" :h "sha256" :s "email"))
69bbb181 89
06f1bb3f 90 ;; Anycast services.
aef7892b
MW
91 (dns0 :anycast ((any dns0.any)
92 (jump precision.jump)
93 (colo precision.colo)
94 (dmz radius.dmz)
95 (unsafe radius.unsafe)))
96 (dns1 :anycast ((any dns1.any)
97 (jump telecaster.jump)
98 (dmz vampire.dmz)
99 (unsafe vampire.unsafe)
100 (colo telecaster.colo)))
cfecfa5c
MW
101 (dns :cname dns0)
102
aef7892b
MW
103 (ntp0 :anycast ((any ntp0.any)
104 (jump fender.jump)
105 (dmz ibanez.dmz)
106 (unsafe ibanez.unsafe)
107 (colo fender.colo)))
108 (ntp1 :anycast ((any ntp1.any)
109 (dmz vampire.dmz)
110 (unsafe vampire.unsafe)))
cfecfa5c
MW
111 (ntp :cname ntp0)
112
aef7892b 113 (www-cache :anycast ((any www-cache.any)
6fcf076f
MW
114 (jump telecaster.jump)
115 (dmz roadstar.dmz)
116 (unsafe roadstar.unsafe)
117 (colo telecaster.colo)))
345c0f69
MW
118 (wpad :cname www-cache)
119
cfecfa5c 120 (_kerberos :txt "DISTORTED.ORG.UK")
aef7892b
MW
121 (krb0 :anycast ((any krb0.any)
122 (jump precision.jump)
123 (dmz radius.dmz)
124 (unsafe radius.unsafe)
125 (colo precision.colo)))
126 (krb1 :anycast ((any krb1.any)
127 (dmz vampire.dmz)
128 (unsafe vampire.unsafe)))
cfecfa5c
MW
129 (krb-master (unsafe :svc radius.unsafe)
130 (dmz :svc radius.dmz))
131 :srv (((:kerberos :protocol :udp)
132 krb0
133 (krb1 :prio 100))
134 ((:kerberos-master :protocol :udp :port 88) krb-master)
135 (:kerberos-adm krb-master)
136 ((:kpasswd :protocol :udp) krb-master))
137 (krb :cname krb0)
138
6ef39f28 139 ;; Other services.
96c2a692
MW
140 :srv ((:http www)
141 (:ftp ftp))
ec4898f9 142
4c25329e 143 ;; Colocated services.
6e726a18
MW
144 ((irc vox keys) (colo :svc jazz.colo :sshfp "jazz")
145 (jump :svc jazz.jump :sshfp "jazz"))
beb363e0
MW
146 ((bugs lists) (colo :svc telecaster.colo :sshfp "telecaster")
147 (jump :svc telecaster.jump :sshfp "telecaster"))
8d261a89
MW
148 ((git www mail) (colo :svc stratocaster.colo :sshfp "stratocaster")
149 (jump :svc stratocaster.jump :sshfp "stratocaster"))
d9fb2838 150 ((www @) :tlsa (:https (:service-certificate-constraint
9ce2de9d 151 :certificate :sha-256 #p"http-server-www#1")))
d9fb2838 152 (git :tlsa (:https (:trust-anchor-assertion
9ce2de9d 153 :certificate :sha-256 #p"distorted-ca")))
d9fb2838 154 (www-cache :tlsa (3127 (:trust-anchor-assertion
9ce2de9d 155 :certificate :sha-256 #p"distorted-ca")))
beb363e0
MW
156 ((bugs lists) :tlsa (:smtp (:trust-anchor-assertion
157 :certificate :sha-256 #p"distorted-ca")))
9ce2de9d
MW
158 (mail :tlsa ((:smtp :submission :imap)
159 (:trust-anchor-assertion
160 :certificate :sha-256 #p"distorted-ca")))
d13943aa
MW
161 :svc #+view/inside stratocaster.colo
162 #-view/inside stratocaster.jump
8d261a89 163 (cabal :svc stratocaster.colo :sshfp "stratocaster")
0dccfb48
MW
164 ((db ftp) (colo :svc telecaster.colo :sshfp "telecaster")
165 (jump :svc telecaster.jump :sshfp "telecaster"))
166 (dyndns :svc telecaster.jump :sshfp "telecaster")
4c25329e 167
6ef39f28 168 ;; Local services.
6c719992
MW
169 ((rawk pifi) (unsafe :svc artist.unsafe)
170 (dmz :svc artist.dmz))
8d261a89
MW
171 (mirror (dmz :svc roadstar.dmz :sshfp "roadstar")
172 (unsafe :svc roadstar.unsafe :sshfp "roadstar"))
ec4898f9 173
6ef39f28 174 ;; Internal services.
8d261a89 175 #+view/inside ((news lpr) :svc vampire.unsafe :sshfp "vampire")
ec4898f9 176
04db9729 177 ;; Anonymity services.
0865ffd5 178 (anon (colo :svc jazz.colo)
f99b371f 179 (unsafe :svc vampire.unsafe)
c3997955
MW
180 (jump :addr anon.jump)
181 (dmz :addr anon.dmz))
04db9729 182
85a3496c 183 ;; Fancy connectivity.
d267cd94 184 (iodine (jump :svc jazz.jump))
85a3496c 185
38c2de7c
MW
186 ;; Colocated hosts.
187 (colo :net colo)
188 (jump :net jump)
9b7e4069 189 (gate (jump :addr gate.jump :sshfp "precision"))
07fe1e43 190 (fender :abbrev f (colo :abbrev fc) (jump :abbrev fj))
c3997955
MW
191 (fender (colo :addr fender.colo :sshfp "fender")
192 (jump :addr fender.jump :sshfp "fender"))
aa779726 193 (precision :abbrev p (colo :abbrev pc) (jump :abbrev pj) (vpn :abbrev pv))
c3997955 194 (precision (colo :addr precision.colo :sshfp "precision")
aa779726
MW
195 (jump :addr precision.jump :sshfp "precision")
196 (vpn :addr precision.vpn :sshfp "precision"))
07fe1e43
MW
197 (telecaster :alias tele :abbrev t
198 (colo :alias tele.colo :abbrev tc)
199 (jump :alias tele.jump :abbrev tj))
c3997955
MW
200 (telecaster (colo :addr telecaster.colo :sshfp "telecaster")
201 (jump :addr telecaster.jump :sshfp "telecaster"))
07fe1e43
MW
202 (stratocaster :alias strat :abbrev s
203 (colo :alias strat.colo :abbrev sc)
204 (jump :alias strat.jump :abbrev sj))
c3997955
MW
205 (stratocaster (colo :addr stratocaster.colo :sshfp "stratocaster")
206 (jump :addr stratocaster.jump :sshfp "stratocaster"))
aa779726 207 (jazz :abbrev z (colo :abbrev zc) (jump :abbrev zj) (vpn :abbrev :zv))
c3997955
MW
208 (jazz (colo :addr jazz.colo :sshfp "jazz")
209 (jump :addr jazz.jump :sshfp "jazz")
aa779726 210 (vpn :addr jazz.vpn :sshfp "jazz")
c3997955 211 (iodine :addr jazz.iodine :sshfp "jazz"))
38c2de7c 212
4a372d1b 213 ;; Media server (on loan to Good Technology HSTG).
07fe1e43 214 (jaguar :abbrev jag)
376a10ac 215 (jaguar (jump :addr jaguar.jump :sshfp "jaguar"))
4a372d1b 216
a20ec58c 217 ;; Nicko's server.
c1f47051 218 (richmond (jump :svc richmond.jump))
a20ec58c 219
76e1e45a
MW
220 ;; Entry is via little router box.
221 (dmz :net dmz)
222 (guvnor (dmz :addr guvnor.dmz))
223 (nat (dmz :addr nat.dmz))
224
225 ;; Wireless gateway.
226 (wireless :net wireless)
227 (evolution (safe :addr evolution.safe))
228 (evolution :alias evo)
229
f8f3b283 230 ;; Switches.
c32d96fa
MW
231 (grigsby :alias tp0)
232 (grigsby (safe :addr grigsby.safe))
233 (carling :alias tp1)
234 (carling (safe :addr carling.safe))
235 (tritan :alias tp2)
236 (tritan (safe :addr tritan.safe))
f8f3b283 237
6ef39f28 238 ;; Wired ethernet.
04d65182
MW
239 (unsafe :net unsafe)
240 (safe :net safe)
241 (untrusted :net untrusted)
07fe1e43 242 (vampire :abbrev v
aa779726 243 (unsafe :abbrev vu) (dmz :abbrev vd) (vpn :abbrev vv)
07fe1e43 244 (safe :abbrev vs) (untrusted :abbrev vx))
c3997955
MW
245 (vampire (unsafe :addr vampire.unsafe :sshfp "vampire")
246 (dmz :addr vampire.dmz :sshfp "vampire")
aa779726 247 (vpn :addr vampire.vpn :sshfp "vampire")
c3997955
MW
248 (safe :addr vampire.safe :sshfp "vampire")
249 (untrusted :addr vampire.untrusted :sshfp "vampire"))
07fe1e43 250 (ibanez :abbrev i (unsafe :abbrev iu) (dmz :abbrev id))
c3997955
MW
251 (ibanez (unsafe :addr ibanez.unsafe :sshfp "ibanez")
252 (dmz :addr ibanez.dmz :sshfp "ibanez"))
07fe1e43 253 (radius :abbrev r
aa779726 254 (unsafe :abbrev ru) (dmz :abbrev rd) (vpn :abbrev rv)
07fe1e43 255 (safe :abbrev rs) (untrusted :abbrev rx))
c3997955
MW
256 (radius (unsafe :addr radius.unsafe :sshfp "radius")
257 (dmz :addr radius.dmz :sshfp "radius")
aa779726 258 (vpn :addr radius.vpn :sshfp "radius")
c3997955
MW
259 (safe :addr radius.safe :sshfp "radius")
260 (untrusted :addr radius.untrusted :sshfp "radius"))
07fe1e43 261 (roadstar :abbrev rg (unsafe :abbrev rgu) (dmz :abbrev rgd))
c3997955
MW
262 (roadstar (unsafe :addr roadstar.unsafe :sshfp "roadstar")
263 (dmz :addr roadstar.dmz :sshfp "roadstar"))
07fe1e43 264 (jem :abbrev j (unsafe :abbrev ju) (dmz :abbrev jd))
c3997955
MW
265 (jem (unsafe :addr jem.unsafe :sshfp "jem")
266 (dmz :addr jem.dmz :sshfp "jem"))
07fe1e43
MW
267 (artist :abbrev a
268 (unsafe :abbrev au) (dmz :abbrev ad) (untrusted :abbrev ax))
c3997955
MW
269 (artist (unsafe :addr artist.unsafe :sshfp "artist")
270 (dmz :addr artist.dmz :sshfp "artist")
271 (untrusted :addr artist.untrusted :sshfp "artist"))
f409e9c5
MW
272 (groove :abbrev gr)
273 (groove (unsafe :addr groove.unsafe :sshfp "groove"))
ec4898f9 274
ff6c53ad 275 ;; DHCP hosts.
07fe1e43 276 (gibson :cname gibson.dhcp :abbrev g)
4b5e05ad
MW
277 (lespaul :cname lespaul.dhcp)
278 (firebird :cname firebird.dhcp)
aa4d55b1
MW
279 (marauder :cname marauder.dhcp)
280 (invader :cname invader.dhcp)
098020ad 281 (gretsch :cname gretsch.dhcp)
ec4898f9 282
6ef39f28 283 ;; Virtual network.
374be896 284 (vpn :net vpn)
07fe1e43 285 (crybaby :abbrev cb)
c3997955
MW
286 (crybaby (vpn :addr crybaby.vpn :sshfp "crybaby"))
287 (terror (vpn :addr terror.vpn :sshfp "terror"))
07fe1e43 288 (orange :abbrev o)
c3997955 289 (orange (vpn :addr orange.vpn :sshfp "orange"))
07fe1e43 290 (haze :abbrev h)
76bca42f 291 (haze (vpn :addr haze.vpn :sshfp "haze"))
fc0ce2ed 292 (iodine :net iodine)
ec4898f9 293
6ef39f28 294 ;; ITS.
b1d5c6c2 295 (its :net its)
c3997955
MW
296 (gw (its :addr gw.its))
297 (mz (its :addr mz.its))
ec4898f9 298
c2118713 299 ;; Strange things.
c3997955 300 (blackhole (jump :addr blackhole.jump))
c2118713 301
6ef39f28 302 ;; Delegations.
f0209b9c
MW
303 (dhcp :ns ((radius.ns.dhcp :ip radius)
304 (precision.ns.dhcp :ip precision)
1b9508ad 305 (telecaster.ns.dhcp :ip telecaster)
3f954bac
MW
306 (vampire.ns.dhcp :ip vampire))
307 :ds ((55966 :rsasha256 :sha1
308 "95b05c1f4e84f950f29630004bac447f8a87ca33")
309 (55966 :rsasha256 :sha256
310 #.(concatenate 'string "31696bf54b577362b2eb75793adeb9ec"
311 "2e8440ec671371b35d8d978cd9ca3007"))))
49c5f8ff
MW
312 (dyn :ns ((radius.ns.dyn :ip radius)
313 (precision.ns.dyn :ip precision)
1b9508ad 314 (telecaster.ns.dyn :ip telecaster)
3f954bac
MW
315 (vampire.ns.dyn :ip vampire))
316 :ds ((11335 :rsasha256 :sha1
317 "7ed2b843b0bfb38ceca68617dfacbeafab1d1ea9")
318 (11335 :rsasha256 :sha256
319 #.(concatenate 'string "6eb15eb587c48f5b84ca128a656a4cce"
320 "0a41cf040d3d0f15a44dffd6476b2b55"))))
0262908f 321 (dnserr :ns ((radius.ns.dnserr :ip radius.dmz)
f0209b9c 322 (precision.ns.dnserr :ip precision.jump)
1b9508ad 323 (telecaster.ns.dnserr :ip telecaster)
3f954bac
MW
324 (vampire.ns.dnserr :ip vampire.dmz))
325 :ds ((40945 :rsasha256 :sha1
326 "f35b5d0b877b940e63ad1b3afc21d6ba83cd1b3b")
327 (40945 :rsasha256 :sha256
328 #.(concatenate 'string "fb171d206d4d64c5a7a6c290ce6e20df"
329 "44f1db7f41e2260f1fe8d7c55d524c11"))))
17c95de9 330 (io :ns ((ns.io :ip jazz.jump))))
b1d5c6c2
MW
331
332;;;--------------------------------------------------------------------------
333;;; Other subsidiary zones.
e80b4c2d 334
55f161b6 335(defzone dhcp.distorted.org.uk
a1ab9d7e
MW
336 :ns ((radius.ns :ip radius.dmz)
337 (precision.ns :ip precision.jump)
338 (telecaster.ns :ip telecaster.jump)
339 (vampire.ns :ip vampire.dmz))
55f161b6 340 (gibson :addr gibson.unsafe)
812706bd 341 (crybaby :addr crybaby.unsafe)
2d7b9fe6 342 (lespaul :addr lespaul.unsafe)
3e38779f
MW
343 (gretsch :addr gretsch.unsafe)
344 (haze :addr haze.unsafe)
55f161b6 345 (invader :addr invader.safe)
3e38779f 346 (marauder :addr marauder.safe))
55f161b6 347
c1f47051
MW
348(defzone nicko.org
349 (richmond :addr richmond.jump))
350
e80b4c2d 351(defrevzone trusted
8aa87005
MW
352 :ns (radius.distorted.org.uk.
353 precision.distorted.org.uk.
1b9508ad 354 telecaster.distorted.org.uk.
8aa87005 355 vampire.distorted.org.uk.)
b59ce50d
MW
356 :reverse unsafe
357 :reverse vpn
358 :reverse colo
359 :reverse its
345c0f69 360 :reverse any
8aa87005
MW
361 (dhcp :ns (radius.distorted.org.uk.
362 precision.distorted.org.uk.
1b9508ad 363 telecaster.distorted.org.uk.
8aa87005 364 vampire.distorted.org.uk.))
3503589d 365 :multi (((dhcp safe) :family :ipv4 :suffix "199.29.172.dhcp") :cname *))
b3f75214 366
b29264c5 367(defrevzone (dmz :family :ipv6)
8aa87005
MW
368 :ns (radius.distorted.org.uk.
369 precision.distorted.org.uk.
1b9508ad 370 telecaster.distorted.org.uk.
8aa87005 371 vampire.distorted.org.uk.)
ff6c53ad 372 :reverse dmz)
92e99247 373
b29264c5
MW
374(defrevzone (dmz :family :ipv4)
375 (144-159 :ns (radius.distorted.org.uk.
376 precision.distorted.org.uk.
377 telecaster.distorted.org.uk.
378 vampire.distorted.org.uk.))
379 :multi ((dmz :suffix "144-159") :cname *))
380
381(defzone 144-159.204.49.62.in-addr.arpa
382 :ns (radius.distorted.org.uk.
383 precision.distorted.org.uk.
384 telecaster.distorted.org.uk.
385 vampire.distorted.org.uk.)
386 :reverse ((((:ipv4 dmz)))))
387
388(defrevzone (jump :family :ipv6)
8aa87005
MW
389 :ns (radius.distorted.org.uk.
390 precision.distorted.org.uk.
1b9508ad 391 telecaster.distorted.org.uk.
8aa87005 392 vampire.distorted.org.uk.)
38c2de7c
MW
393 :reverse jump)
394
b29264c5
MW
395(defrevzone (jump :family :ipv4)
396 (64-79 :ns (radius.distorted.org.uk.
397 precision.distorted.org.uk.
398 telecaster.distorted.org.uk.
399 vampire.distorted.org.uk.))
400 :multi ((jump :suffix "64-79") :cname *))
401
402(defzone 64-79.198.13.212.in-addr.arpa
403 :ns (radius.distorted.org.uk.
404 precision.distorted.org.uk.
405 telecaster.distorted.org.uk.
406 vampire.distorted.org.uk.)
407 :reverse ((((:ipv4 jump)))))
408
652c34be
MW
409(defrevzone distorted.org.uk-he
410 :ns (radius.distorted.org.uk.
411 precision.distorted.org.uk.
1b9508ad 412 telecaster.distorted.org.uk.
652c34be
MW
413 vampire.distorted.org.uk.)
414 :reverse distorted.org.uk-he)
415
416(defrevzone distorted.org.uk-jump
417 :ns (radius.distorted.org.uk.
418 precision.distorted.org.uk.
1b9508ad 419 telecaster.distorted.org.uk.
652c34be
MW
420 vampire.distorted.org.uk.)
421 :reverse distorted.org.uk-jump)
422
995d75b4 423(defzone io.distorted.org.uk
17c95de9 424 :ns ((ns :ip jazz.jump))
995d75b4
MW
425 (about :txt "Fake zone used for IP-over-DNS tunnelling."))
426
b1d5c6c2 427;;;----- That's all, folks --------------------------------------------------