X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/629b0194771e9f99bc46b537b545adf0c0f258e9..dce05ef94a072e144695d6550bae30e88f9c8019:/src/switch2osm.js?ds=inline diff --git a/src/switch2osm.js b/src/switch2osm.js index 38422fa..16ff39c 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("@", "193.60.236.19", TTL("10m")), - A("www", "193.60.236.19", TTL("10m")) + A("@", IPV4["naga.he"]), + AAAA("@", IPV6["naga.he"]), + A("www", IPV4["naga.he"]), + AAAA("www", IPV6["naga.he"]), + + // HTTPS / SVCB records + HTTPS("@", 1, ".", "alpn=h2"), + HTTPS("www", 1, ".", "alpn=h2") );