]> git.openstreetmap.org Git - dns.git/blob - src/switch2osm.js
Restore spike-07 and drop spike-08
[dns.git] / src / switch2osm.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     iodef: "mailto:hostmaster@openstreetmap.org",
8     issue: [
9       "letsencrypt.org",
10     ],
11     issuewild: [
12       "letsencrypt.org",
13     ],
14   }),
15
16   // Delegate SPF policy to the main domain
17
18   SPF_BUILDER({
19     label: "@",
20     parts: [
21       "v=spf1",
22       "include:openstreetmap.org",  // main openstreetmap.org spf record
23       "-all"
24     ]
25   }),
26
27   // Main web server and it's aliases
28
29   A("@", NAGA_IPV4),
30   AAAA("@", NAGA_IPV6),
31   A("www", NAGA_IPV4),
32   AAAA("www", NAGA_IPV6),
33
34   // HTTPS / SVCB records
35   HTTPS("@", 1, ".", "alpn=h2"),
36   HTTPS("www", 1, ".", "alpn=h2")
37
38 );