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