chiark / gitweb /
Add telecaster as a public-facing nameserver.
[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)
43fc56bd
MW
96 (jump (:ipv4 telecaster.jump))
97 (dmz (:ipv4 roadstar.dmz))
98 (unsafe (:ipv4 roadstar.unsafe))
99 (colo (:ipv4 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")
37caef73
MW
143 ((db ftp dyndns) (colo :svc telecaster.colo :sshfp "telecaster")
144 (jump :svc telecaster.jump :sshfp "telecaster"))
4c25329e 145
6ef39f28 146 ;; Local services.
6c719992
MW
147 ((rawk pifi) (unsafe :svc artist.unsafe)
148 (dmz :svc artist.dmz))
8d261a89
MW
149 (mirror (dmz :svc roadstar.dmz :sshfp "roadstar")
150 (unsafe :svc roadstar.unsafe :sshfp "roadstar"))
151 ((wiki bugs old-mail i2p) :svc vampire :sshfp "vampire")
ec4898f9 152
6ef39f28 153 ;; Internal services.
8d261a89 154 #+view/inside ((news lpr) :svc vampire.unsafe :sshfp "vampire")
ec4898f9 155
04db9729 156 ;; Anonymity services.
0865ffd5 157 (anon (colo :svc jazz.colo)
f99b371f 158 (unsafe :svc vampire.unsafe)
c3997955
MW
159 (jump :addr anon.jump)
160 (dmz :addr anon.dmz))
04db9729 161
85a3496c 162 ;; Fancy connectivity.
c3997955 163 (iodine (jump :addr jazz.jump))
85a3496c 164
38c2de7c
MW
165 ;; Colocated hosts.
166 (colo :net colo)
167 (jump :net jump)
9b7e4069 168 (gate (jump :addr gate.jump :sshfp "precision"))
c3997955
MW
169 (fender (colo :addr fender.colo :sshfp "fender")
170 (jump :addr fender.jump :sshfp "fender"))
171 (precision (colo :addr precision.colo :sshfp "precision")
172 (jump :addr precision.jump :sshfp "precision"))
173 (telecaster (colo :addr telecaster.colo :sshfp "telecaster")
174 (jump :addr telecaster.jump :sshfp "telecaster"))
38c2de7c 175 (telecaster :alias tele)
c3997955
MW
176 (stratocaster (colo :addr stratocaster.colo :sshfp "stratocaster")
177 (jump :addr stratocaster.jump :sshfp "stratocaster"))
38c2de7c 178 (stratocaster :alias strat)
c3997955
MW
179 (jazz (colo :addr jazz.colo :sshfp "jazz")
180 (jump :addr jazz.jump :sshfp "jazz")
181 (iodine :addr jazz.iodine :sshfp "jazz"))
38c2de7c 182
4a372d1b 183 ;; Media server (on loan to Good Technology HSTG).
c3997955 184 (jaguar (jump :addr jaguar.jump))
4a372d1b 185
a20ec58c 186 ;; Nicko's server.
c3997955 187 (richmond (jump :addr richmond.jump))
a20ec58c 188
6ef39f28 189 ;; Wired ethernet.
04d65182
MW
190 (unsafe :net unsafe)
191 (safe :net safe)
192 (untrusted :net untrusted)
c3997955
MW
193 (vampire (unsafe :addr vampire.unsafe :sshfp "vampire")
194 (dmz :addr vampire.dmz :sshfp "vampire")
195 (safe :addr vampire.safe :sshfp "vampire")
196 (untrusted :addr vampire.untrusted :sshfp "vampire"))
197 (ibanez (unsafe :addr ibanez.unsafe :sshfp "ibanez")
198 (dmz :addr ibanez.dmz :sshfp "ibanez"))
199 (radius (unsafe :addr radius.unsafe :sshfp "radius")
200 (dmz :addr radius.dmz :sshfp "radius")
201 (safe :addr radius.safe :sshfp "radius")
202 (untrusted :addr radius.untrusted :sshfp "radius"))
203 (roadstar (unsafe :addr roadstar.unsafe :sshfp "roadstar")
204 (dmz :addr roadstar.dmz :sshfp "roadstar"))
205 (jem (unsafe :addr jem.unsafe :sshfp "jem")
206 (dmz :addr jem.dmz :sshfp "jem"))
207 (artist (unsafe :addr artist.unsafe :sshfp "artist")
208 (dmz :addr artist.dmz :sshfp "artist")
209 (untrusted :addr artist.untrusted :sshfp "artist"))
ec4898f9 210
ff6c53ad 211 ;; DHCP hosts.
4b5e05ad
MW
212 (gibson :cname gibson.dhcp)
213 (lespaul :cname lespaul.dhcp)
214 (firebird :cname firebird.dhcp)
aa4d55b1
MW
215 (marauder :cname marauder.dhcp)
216 (invader :cname invader.dhcp)
ec4898f9 217
6ef39f28 218 ;; Virtual network.
374be896 219 (vpn :net vpn)
c3997955
MW
220 (crybaby (vpn :addr crybaby.vpn :sshfp "crybaby"))
221 (terror (vpn :addr terror.vpn :sshfp "terror"))
222 (orange (vpn :addr orange.vpn :sshfp "orange"))
fc0ce2ed 223 (iodine :net iodine)
ec4898f9 224
6ef39f28 225 ;; ITS.
b1d5c6c2 226 (its :net its)
c3997955
MW
227 (gw (its :addr gw.its))
228 (mz (its :addr mz.its))
ec4898f9 229
c2118713 230 ;; Strange things.
c3997955 231 (blackhole (jump :addr blackhole.jump))
c2118713 232
6ef39f28 233 ;; Delegations.
f0209b9c
MW
234 (dhcp :ns ((radius.ns.dhcp :ip radius)
235 (precision.ns.dhcp :ip precision)
1b9508ad 236 (telecaster.ns.dhcp :ip telecaster)
f0209b9c 237 (vampire.ns.dhcp :ip vampire)))
49c5f8ff
MW
238 (dyn :ns ((radius.ns.dyn :ip radius)
239 (precision.ns.dyn :ip precision)
1b9508ad 240 (telecaster.ns.dyn :ip telecaster)
49c5f8ff 241 (vampire.ns.dyn :ip vampire)))
0262908f 242 (dnserr :ns ((radius.ns.dnserr :ip radius.dmz)
f0209b9c 243 (precision.ns.dnserr :ip precision.jump)
1b9508ad 244 (telecaster.ns.dnserr :ip telecaster)
0262908f 245 (vampire.ns.dnserr :ip vampire.dmz)))
17c95de9 246 (io :ns ((ns.io :ip jazz.jump))))
b1d5c6c2
MW
247
248;;;--------------------------------------------------------------------------
249;;; Other subsidiary zones.
e80b4c2d 250
55f161b6
MW
251(defzone dhcp.distorted.org.uk
252 (gibson :addr gibson.unsafe)
253 (lespaul :addr lespaul.safe)
254 (invader :addr invader.safe)
255 (marauder :addr marauder.safe))
256
e80b4c2d 257(defrevzone trusted
8aa87005
MW
258 :ns (radius.distorted.org.uk.
259 precision.distorted.org.uk.
1b9508ad 260 telecaster.distorted.org.uk.
8aa87005 261 vampire.distorted.org.uk.)
b59ce50d
MW
262 :reverse unsafe
263 :reverse vpn
264 :reverse colo
265 :reverse its
345c0f69 266 :reverse any
8aa87005
MW
267 (dhcp :ns (radius.distorted.org.uk.
268 precision.distorted.org.uk.
1b9508ad 269 telecaster.distorted.org.uk.
8aa87005 270 vampire.distorted.org.uk.))
3503589d 271 :multi (((dhcp safe) :family :ipv4 :suffix "199.29.172.dhcp") :cname *))
b3f75214 272
ff6c53ad 273(defrevzone dmz
8aa87005
MW
274 :ns (radius.distorted.org.uk.
275 precision.distorted.org.uk.
1b9508ad 276 telecaster.distorted.org.uk.
8aa87005 277 vampire.distorted.org.uk.)
ff6c53ad 278 :reverse dmz)
92e99247 279
38c2de7c 280(defrevzone jump
8aa87005
MW
281 :ns (radius.distorted.org.uk.
282 precision.distorted.org.uk.
1b9508ad 283 telecaster.distorted.org.uk.
8aa87005 284 vampire.distorted.org.uk.)
38c2de7c
MW
285 :reverse jump)
286
652c34be
MW
287(defrevzone distorted.org.uk-he
288 :ns (radius.distorted.org.uk.
289 precision.distorted.org.uk.
1b9508ad 290 telecaster.distorted.org.uk.
652c34be
MW
291 vampire.distorted.org.uk.)
292 :reverse distorted.org.uk-he)
293
294(defrevzone distorted.org.uk-jump
295 :ns (radius.distorted.org.uk.
296 precision.distorted.org.uk.
1b9508ad 297 telecaster.distorted.org.uk.
652c34be
MW
298 vampire.distorted.org.uk.)
299 :reverse distorted.org.uk-jump)
300
995d75b4 301(defzone io.distorted.org.uk
17c95de9 302 :ns ((ns :ip jazz.jump))
995d75b4
MW
303 (about :txt "Fake zone used for IP-over-DNS tunnelling."))
304
b1d5c6c2 305;;;----- That's all, folks --------------------------------------------------