X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/2cad7d56c750cf529d13f34c7437e74868fecd90..7b5078c982aff4a7622822abb761dd19e0ff2498:/src/switch2osm.js?ds=sidebyside diff --git a/src/switch2osm.js b/src/switch2osm.js index 71cae23..26097f2 100644 --- a/src/switch2osm.js +++ b/src/switch2osm.js @@ -2,13 +2,37 @@ D(DOMAIN, REGISTRAR, DnsProvider(PROVIDER), // Publish CAA records indicating that only letsencrypt should issue certificates - CAA("@", "issue", "letsencrypt.org", CF_TTL_ANY), - CAA("@", "issuewild", "letsencrypt.org", CF_TTL_ANY), - CAA("@", "iodef", "mailto:hostmaster@openstreetmap.org"), + CAA_BUILDER({ + label: "@", + iodef: "mailto:hostmaster@openstreetmap.org", + issue: [ + "letsencrypt.org", + ], + issuewild: [ + "letsencrypt.org", + ], + }), + + // Delegate SPF policy to the main domain + + SPF_BUILDER({ + label: "@", + parts: [ + "v=spf1", + "include:openstreetmap.org", // main openstreetmap.org spf record + "-all" + ] + }), // Main web server and it's aliases - A("@", RIDLEY_IPV4, TTL("10m")), - A("www", RIDLEY_IPV4, TTL("10m")) + A("@", NAGA_IPV4), + AAAA("@", NAGA_IPV6), + A("www", NAGA_IPV4), + AAAA("www", NAGA_IPV6), + + // HTTPS / SVCB records + HTTPS("@", 1, ".", "alpn=h2"), + HTTPS("www", 1, ".", "alpn=h2") );