X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/629b0194771e9f99bc46b537b545adf0c0f258e9..dab85ec4e3fcc90bf66b120bcc16ff4f1a8f8022:/src/opengeodata.js diff --git a/src/opengeodata.js b/src/opengeodata.js index 815b840..807df1f 100644 --- a/src/opengeodata.js +++ b/src/opengeodata.js @@ -2,14 +2,32 @@ 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("old", "193.60.236.19", TTL("10m")), - A("www", "193.60.236.19", TTL("10m")) + A("@", IPV4["ridley"]), + A("old", IPV4["ridley"]), // Legacy URL support https://blog.openstreetmap.org/2010/02/25/old-opengeodata-posts-now-up-at-old-opengeodata-org/ + A("www", IPV4["ridley"]) );