]> git.openstreetmap.org Git - dns.git/blob - src/openstreetmap-uk.js
Use SPF and CAA builder. Normalise TTL
[dns.git] / src / openstreetmap-uk.js
1 D(DOMAIN, REGISTRAR, DnsProvider(PROVIDER),
2
3   // Publish CAA records indicating that only letsencrypt should issue certificates
4
5   CAA_BUILDER({
6     label: "@",
7     ttl: "1h",
8     iodef: "mailto:hostmaster@openstreetmap.org",
9     issue: [
10       "letsencrypt.org",
11     ],
12     issuewild: [
13       "letsencrypt.org",
14     ],
15   }),
16
17   // Let the main domain handle the email
18
19   MX("@", 10, "a.mx.openstreetmap.org."),
20
21   // Delegate SPF policy to the main domain
22
23   SPF_BUILDER({
24     label: "@",
25     ttl: "1h",
26     parts: [
27       "v=spf1",
28       "include:openstreetmap.org",      // main openstreetmap.org spf record
29       "-all"
30     ]
31   }),
32
33   // Delegate MTA-STS policy to the main domain
34
35   CNAME("_mta-sts", "_mta-sts.openstreetmap.org."),
36
37   // Main web site
38
39   ALIAS("@", "www.openstreetmap.org."),
40   CNAME("www", "www.openstreetmap.org."),
41   CNAME("api", "api.openstreetmap.org."),
42
43   // Shaun McDonald's taginfo instance
44
45   CNAME("taginfo", "proxy.mythic-beasts.com."),
46
47   // Aerial imagery sites
48
49   A("hampshire.aerial", KESSIE_IPV4, TTL("1h")),
50   AAAA("hampshire.aerial", KESSIE_IPV6, TTL("1h")),
51   A("a.hampshire.aerial", KESSIE_IPV4, TTL("1h")),
52   AAAA("a.hampshire.aerial", KESSIE_IPV6, TTL("1h")),
53   A("b.hampshire.aerial", KESSIE_IPV4, TTL("1h")),
54   AAAA("b.hampshire.aerial", KESSIE_IPV6, TTL("1h")),
55   A("c.hampshire.aerial", KESSIE_IPV4, TTL("1h")),
56   AAAA("c.hampshire.aerial", KESSIE_IPV6, TTL("1h")),
57
58   A("surrey.aerial", KESSIE_IPV4, TTL("1h")),
59   AAAA("surrey.aerial", KESSIE_IPV6, TTL("1h")),
60   A("a.surrey.aerial", KESSIE_IPV4, TTL("1h")),
61   AAAA("a.surrey.aerial", KESSIE_IPV6, TTL("1h")),
62   A("b.surrey.aerial", KESSIE_IPV4, TTL("1h")),
63   AAAA("b.surrey.aerial", KESSIE_IPV6, TTL("1h")),
64   A("c.surrey.aerial", KESSIE_IPV4, TTL("1h")),
65   AAAA("c.surrey.aerial", KESSIE_IPV6, TTL("1h")),
66
67   A("os", KESSIE_IPV4, TTL("1h")),
68   AAAA("os", KESSIE_IPV6, TTL("1h")),
69   A("a.os", KESSIE_IPV4, TTL("1h")),
70   AAAA("a.os", KESSIE_IPV6, TTL("1h")),
71   A("b.os", KESSIE_IPV4, TTL("1h")),
72   AAAA("b.os", KESSIE_IPV6, TTL("1h")),
73   A("c.os", KESSIE_IPV4, TTL("1h")),
74   AAAA("c.os", KESSIE_IPV6, TTL("1h")),
75
76   A("ea", KESSIE_IPV4, TTL("1h")),
77   AAAA("ea", KESSIE_IPV6, TTL("1h")),
78   A("a.ea", KESSIE_IPV4, TTL("1h")),
79   AAAA("a.ea", KESSIE_IPV6, TTL("1h")),
80   A("b.ea", KESSIE_IPV4, TTL("1h")),
81   AAAA("b.ea", KESSIE_IPV6, TTL("1h")),
82   A("c.ea", KESSIE_IPV4, TTL("1h")),
83   AAAA("c.ea", KESSIE_IPV6, TTL("1h"))
84
85 );