chiark / gitweb /
binswood.lisp: Publish records for the web server.
[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)
31 :name (concatenate 'string prefix "."
32 (string-downcase (car provider))
33 "." (string-downcase zname))))))
34
35;;;--------------------------------------------------------------------------
b1d5c6c2 36;;; Other definitions.
e80b4c2d
MW
37
38(setf *default-zone-admin* "hostmaster@distorted.org.uk")
2bc217e8 39
ff6c53ad 40(setf *default-zone-source* 'radius.distorted.org.uk.)
e80b4c2d 41
b1d5c6c2
MW
42;;;--------------------------------------------------------------------------
43;;; Main zone definition.
44
e80b4c2d 45(defzone distorted.org.uk
ec4898f9 46
6ef39f28 47 ;; Nameservers.
ff6c53ad 48 :ns #+view/inside ((radius.ns :ip radius)
f0209b9c 49 (precision.ns :ip precision)
1b9508ad 50 (telecaster.ns :ip telecaster)
ff6c53ad
MW
51 (vampire.ns :ip vampire))
52 #-view/inside ((radius.ns :ip radius)
f0209b9c 53 (precision.ns :ip precision)
1b9508ad 54 (telecaster.ns :ip telecaster)
ff6c53ad 55 (mythic-beasts-1.ns :ip mythic-ns1)
4a487d58 56 (mythic-beasts-2.ns :ip mythic-ns2)
ff6c53ad 57 (chiark.ns :ip chiark.greenend.org.uk))
ec4898f9 58
6ef39f28 59 ;; Mail servers.
39567ec1 60 ((@ mail)
96c2a692
MW
61 :mx mail
62 :srv ((:smtp mail)))
39567ec1
MW
63 ((lists bugs cryptomail)
64 :ttl 300
65 :mx mail
66 :srv ((:smtp old-mail)))
ec4898f9 67
69bbb181 68 (stratocaster.20140403._domainkey
8d261a89
MW
69 :dkim ("stratocaster-20140403"
70 :v "DKIM1" :k "rsa" :h "sha256" :s "email"))
69bbb181 71
06f1bb3f 72 ;; Anycast services.
aef7892b
MW
73 (dns0 :anycast ((any dns0.any)
74 (jump precision.jump)
75 (colo precision.colo)
76 (dmz radius.dmz)
77 (unsafe radius.unsafe)))
78 (dns1 :anycast ((any dns1.any)
79 (jump telecaster.jump)
80 (dmz vampire.dmz)
81 (unsafe vampire.unsafe)
82 (colo telecaster.colo)))
cfecfa5c
MW
83 (dns :cname dns0)
84
aef7892b
MW
85 (ntp0 :anycast ((any ntp0.any)
86 (jump fender.jump)
87 (dmz ibanez.dmz)
88 (unsafe ibanez.unsafe)
89 (colo fender.colo)))
90 (ntp1 :anycast ((any ntp1.any)
91 (dmz vampire.dmz)
92 (unsafe vampire.unsafe)))
cfecfa5c
MW
93 (ntp :cname ntp0)
94
aef7892b 95 (www-cache :anycast ((any www-cache.any)
6fcf076f
MW
96 (jump telecaster.jump)
97 (dmz roadstar.dmz)
98 (unsafe roadstar.unsafe)
99 (colo telecaster.colo)))
345c0f69
MW
100 (wpad :cname www-cache)
101
cfecfa5c 102 (_kerberos :txt "DISTORTED.ORG.UK")
aef7892b
MW
103 (krb0 :anycast ((any krb0.any)
104 (jump precision.jump)
105 (dmz radius.dmz)
106 (unsafe radius.unsafe)
107 (colo precision.colo)))
108 (krb1 :anycast ((any krb1.any)
109 (dmz vampire.dmz)
110 (unsafe vampire.unsafe)))
cfecfa5c
MW
111 (krb-master (unsafe :svc radius.unsafe)
112 (dmz :svc radius.dmz))
113 :srv (((:kerberos :protocol :udp)
114 krb0
115 (krb1 :prio 100))
116 ((:kerberos-master :protocol :udp :port 88) krb-master)
117 (:kerberos-adm krb-master)
118 ((:kpasswd :protocol :udp) krb-master))
119 (krb :cname krb0)
120
6ef39f28 121 ;; Other services.
96c2a692
MW
122 :srv ((:http www)
123 (:ftp ftp))
ec4898f9 124
92e99247 125 ;; Entry is via little router box.
ff6c53ad 126 (dmz :net dmz)
c3997955 127 (guvnor (dmz :addr guvnor.dmz))
c3997955 128 (nat (dmz :addr nat.dmz))
ec4898f9 129
6ef39f28 130 ;; Wireless gateway.
ff6c53ad 131 (wireless :net wireless)
c3997955 132 (evolution (safe :addr evolution.safe))
9c43df2a 133 (evolution :alias evo)
ec4898f9 134
4c25329e 135 ;; Colocated services.
8d261a89
MW
136 ((irc vox) (colo :svc jazz.colo :sshfp "jazz")
137 (jump :svc jazz.jump :sshfp "jazz"))
138 ((git www mail) (colo :svc stratocaster.colo :sshfp "stratocaster")
139 (jump :svc stratocaster.jump :sshfp "stratocaster"))
d13943aa
MW
140 :svc #+view/inside stratocaster.colo
141 #-view/inside stratocaster.jump
8d261a89 142 (cabal :svc stratocaster.colo :sshfp "stratocaster")
0dccfb48
MW
143 ((db ftp) (colo :svc telecaster.colo :sshfp "telecaster")
144 (jump :svc telecaster.jump :sshfp "telecaster"))
145 (dyndns :svc telecaster.jump :sshfp "telecaster")
4c25329e 146
6ef39f28 147 ;; Local services.
6c719992
MW
148 ((rawk pifi) (unsafe :svc artist.unsafe)
149 (dmz :svc artist.dmz))
8d261a89
MW
150 (mirror (dmz :svc roadstar.dmz :sshfp "roadstar")
151 (unsafe :svc roadstar.unsafe :sshfp "roadstar"))
152 ((wiki bugs old-mail i2p) :svc vampire :sshfp "vampire")
ec4898f9 153
6ef39f28 154 ;; Internal services.
8d261a89 155 #+view/inside ((news lpr) :svc vampire.unsafe :sshfp "vampire")
ec4898f9 156
04db9729 157 ;; Anonymity services.
0865ffd5 158 (anon (colo :svc jazz.colo)
f99b371f 159 (unsafe :svc vampire.unsafe)
c3997955
MW
160 (jump :addr anon.jump)
161 (dmz :addr anon.dmz))
04db9729 162
85a3496c 163 ;; Fancy connectivity.
d267cd94 164 (iodine (jump :svc jazz.jump))
85a3496c 165
38c2de7c
MW
166 ;; Colocated hosts.
167 (colo :net colo)
168 (jump :net jump)
9b7e4069 169 (gate (jump :addr gate.jump :sshfp "precision"))
c3997955
MW
170 (fender (colo :addr fender.colo :sshfp "fender")
171 (jump :addr fender.jump :sshfp "fender"))
172 (precision (colo :addr precision.colo :sshfp "precision")
173 (jump :addr precision.jump :sshfp "precision"))
174 (telecaster (colo :addr telecaster.colo :sshfp "telecaster")
175 (jump :addr telecaster.jump :sshfp "telecaster"))
38c2de7c 176 (telecaster :alias tele)
c3997955
MW
177 (stratocaster (colo :addr stratocaster.colo :sshfp "stratocaster")
178 (jump :addr stratocaster.jump :sshfp "stratocaster"))
38c2de7c 179 (stratocaster :alias strat)
c3997955
MW
180 (jazz (colo :addr jazz.colo :sshfp "jazz")
181 (jump :addr jazz.jump :sshfp "jazz")
182 (iodine :addr jazz.iodine :sshfp "jazz"))
38c2de7c 183
4a372d1b 184 ;; Media server (on loan to Good Technology HSTG).
376a10ac 185 (jaguar (jump :addr jaguar.jump :sshfp "jaguar"))
4a372d1b 186
a20ec58c 187 ;; Nicko's server.
c1f47051 188 (richmond (jump :svc richmond.jump))
a20ec58c 189
6ef39f28 190 ;; Wired ethernet.
04d65182
MW
191 (unsafe :net unsafe)
192 (safe :net safe)
193 (untrusted :net untrusted)
c3997955
MW
194 (vampire (unsafe :addr vampire.unsafe :sshfp "vampire")
195 (dmz :addr vampire.dmz :sshfp "vampire")
196 (safe :addr vampire.safe :sshfp "vampire")
197 (untrusted :addr vampire.untrusted :sshfp "vampire"))
198 (ibanez (unsafe :addr ibanez.unsafe :sshfp "ibanez")
199 (dmz :addr ibanez.dmz :sshfp "ibanez"))
200 (radius (unsafe :addr radius.unsafe :sshfp "radius")
201 (dmz :addr radius.dmz :sshfp "radius")
202 (safe :addr radius.safe :sshfp "radius")
203 (untrusted :addr radius.untrusted :sshfp "radius"))
204 (roadstar (unsafe :addr roadstar.unsafe :sshfp "roadstar")
205 (dmz :addr roadstar.dmz :sshfp "roadstar"))
206 (jem (unsafe :addr jem.unsafe :sshfp "jem")
207 (dmz :addr jem.dmz :sshfp "jem"))
208 (artist (unsafe :addr artist.unsafe :sshfp "artist")
209 (dmz :addr artist.dmz :sshfp "artist")
210 (untrusted :addr artist.untrusted :sshfp "artist"))
ec4898f9 211
ff6c53ad 212 ;; DHCP hosts.
4b5e05ad
MW
213 (gibson :cname gibson.dhcp)
214 (lespaul :cname lespaul.dhcp)
215 (firebird :cname firebird.dhcp)
aa4d55b1
MW
216 (marauder :cname marauder.dhcp)
217 (invader :cname invader.dhcp)
ec4898f9 218
6ef39f28 219 ;; Virtual network.
374be896 220 (vpn :net vpn)
c3997955
MW
221 (crybaby (vpn :addr crybaby.vpn :sshfp "crybaby"))
222 (terror (vpn :addr terror.vpn :sshfp "terror"))
223 (orange (vpn :addr orange.vpn :sshfp "orange"))
fc0ce2ed 224 (iodine :net iodine)
ec4898f9 225
6ef39f28 226 ;; ITS.
b1d5c6c2 227 (its :net its)
c3997955
MW
228 (gw (its :addr gw.its))
229 (mz (its :addr mz.its))
ec4898f9 230
c2118713 231 ;; Strange things.
c3997955 232 (blackhole (jump :addr blackhole.jump))
c2118713 233
6ef39f28 234 ;; Delegations.
f0209b9c
MW
235 (dhcp :ns ((radius.ns.dhcp :ip radius)
236 (precision.ns.dhcp :ip precision)
1b9508ad 237 (telecaster.ns.dhcp :ip telecaster)
f0209b9c 238 (vampire.ns.dhcp :ip vampire)))
49c5f8ff
MW
239 (dyn :ns ((radius.ns.dyn :ip radius)
240 (precision.ns.dyn :ip precision)
1b9508ad 241 (telecaster.ns.dyn :ip telecaster)
49c5f8ff 242 (vampire.ns.dyn :ip vampire)))
0262908f 243 (dnserr :ns ((radius.ns.dnserr :ip radius.dmz)
f0209b9c 244 (precision.ns.dnserr :ip precision.jump)
1b9508ad 245 (telecaster.ns.dnserr :ip telecaster)
0262908f 246 (vampire.ns.dnserr :ip vampire.dmz)))
17c95de9 247 (io :ns ((ns.io :ip jazz.jump))))
b1d5c6c2
MW
248
249;;;--------------------------------------------------------------------------
250;;; Other subsidiary zones.
e80b4c2d 251
55f161b6
MW
252(defzone dhcp.distorted.org.uk
253 (gibson :addr gibson.unsafe)
254 (lespaul :addr lespaul.safe)
255 (invader :addr invader.safe)
256 (marauder :addr marauder.safe))
257
c1f47051
MW
258(defzone nicko.org
259 (richmond :addr richmond.jump))
260
e80b4c2d 261(defrevzone trusted
8aa87005
MW
262 :ns (radius.distorted.org.uk.
263 precision.distorted.org.uk.
1b9508ad 264 telecaster.distorted.org.uk.
8aa87005 265 vampire.distorted.org.uk.)
b59ce50d
MW
266 :reverse unsafe
267 :reverse vpn
268 :reverse colo
269 :reverse its
345c0f69 270 :reverse any
8aa87005
MW
271 (dhcp :ns (radius.distorted.org.uk.
272 precision.distorted.org.uk.
1b9508ad 273 telecaster.distorted.org.uk.
8aa87005 274 vampire.distorted.org.uk.))
3503589d 275 :multi (((dhcp safe) :family :ipv4 :suffix "199.29.172.dhcp") :cname *))
b3f75214 276
b29264c5 277(defrevzone (dmz :family :ipv6)
8aa87005
MW
278 :ns (radius.distorted.org.uk.
279 precision.distorted.org.uk.
1b9508ad 280 telecaster.distorted.org.uk.
8aa87005 281 vampire.distorted.org.uk.)
ff6c53ad 282 :reverse dmz)
92e99247 283
b29264c5
MW
284(defrevzone (dmz :family :ipv4)
285 (144-159 :ns (radius.distorted.org.uk.
286 precision.distorted.org.uk.
287 telecaster.distorted.org.uk.
288 vampire.distorted.org.uk.))
289 :multi ((dmz :suffix "144-159") :cname *))
290
291(defzone 144-159.204.49.62.in-addr.arpa
292 :ns (radius.distorted.org.uk.
293 precision.distorted.org.uk.
294 telecaster.distorted.org.uk.
295 vampire.distorted.org.uk.)
296 :reverse ((((:ipv4 dmz)))))
297
298(defrevzone (jump :family :ipv6)
8aa87005
MW
299 :ns (radius.distorted.org.uk.
300 precision.distorted.org.uk.
1b9508ad 301 telecaster.distorted.org.uk.
8aa87005 302 vampire.distorted.org.uk.)
38c2de7c
MW
303 :reverse jump)
304
b29264c5
MW
305(defrevzone (jump :family :ipv4)
306 (64-79 :ns (radius.distorted.org.uk.
307 precision.distorted.org.uk.
308 telecaster.distorted.org.uk.
309 vampire.distorted.org.uk.))
310 :multi ((jump :suffix "64-79") :cname *))
311
312(defzone 64-79.198.13.212.in-addr.arpa
313 :ns (radius.distorted.org.uk.
314 precision.distorted.org.uk.
315 telecaster.distorted.org.uk.
316 vampire.distorted.org.uk.)
317 :reverse ((((:ipv4 jump)))))
318
652c34be
MW
319(defrevzone distorted.org.uk-he
320 :ns (radius.distorted.org.uk.
321 precision.distorted.org.uk.
1b9508ad 322 telecaster.distorted.org.uk.
652c34be
MW
323 vampire.distorted.org.uk.)
324 :reverse distorted.org.uk-he)
325
326(defrevzone distorted.org.uk-jump
327 :ns (radius.distorted.org.uk.
328 precision.distorted.org.uk.
1b9508ad 329 telecaster.distorted.org.uk.
652c34be
MW
330 vampire.distorted.org.uk.)
331 :reverse distorted.org.uk-jump)
332
995d75b4 333(defzone io.distorted.org.uk
17c95de9 334 :ns ((ns :ip jazz.jump))
995d75b4
MW
335 (about :txt "Fake zone used for IP-over-DNS tunnelling."))
336
b1d5c6c2 337;;;----- That's all, folks --------------------------------------------------