]> git.openstreetmap.org Git - dns.git/blob - src/switch2osm.js
Use SPF and CAA builder. Normalise TTL
[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     ttl: "1h",
8     iodef: "mailto:hostmaster@openstreetmap.org",
9     issue: [
10       "letsencrypt.org",
11     ],
12     issuewild: [
13       "letsencrypt.org",
14     ],
15   }),
16
17   // Delegate SPF policy to the main domain
18
19   SPF_BUILDER({
20     label: "@",
21     ttl: "1h",
22     parts: [
23       "v=spf1",
24       "include:openstreetmap.org",  // main openstreetmap.org spf record
25       "-all"
26     ]
27   }),
28
29   // Main web server and it's aliases
30
31   A("@", RIDLEY_IPV4, TTL("10m")),
32   A("www", RIDLEY_IPV4, TTL("10m"))
33
34 );