X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/2cad7d56c750cf529d13f34c7437e74868fecd90..bcf6dcbb3fa6c40f88b12ce3342b42468a4bf99c:/src/opengeodata.js diff --git a/src/opengeodata.js b/src/opengeodata.js index 6dfc203..a189d3f 100644 --- a/src/opengeodata.js +++ b/src/opengeodata.js @@ -2,9 +2,27 @@ 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 @@ -12,4 +30,4 @@ D(DOMAIN, REGISTRAR, DnsProvider(PROVIDER), A("old", RIDLEY_IPV4, TTL("10m")), A("www", RIDLEY_IPV4, TTL("10m")) -); +); \ No newline at end of file