// Disable due to registration issue
// OPENSTREETMAP("openstreetmap.al", REG_NONE);
-// Mastodon
-OPENSTREETMAP("openstreetmap.town", REG_GANDI);
-// Pending transfer: OPENSTREETMAP("osm.town", REG_GANDI);
+// Mastodon redirects to en.osm.town
+var OPENSTREETMAP_TOWN = loadTemplate("openstreetmap-town");
+OPENSTREETMAP_TOWN("openstreetmap.town", REG_GANDI);
+
+// Domain owned by Amanda McCann
+// osm.town
// Managed independently by Guillaume Rischard
// openstreetmap.lu
--- /dev/null
+D(DOMAIN, REGISTRAR, DnsProvider(PROVIDER),
+
+ // Publish CAA records indicating that only letsencrypt should issue certificates
+
+ CAA_BUILDER({
+ label: "@",
+ iodef: "mailto:hostmaster@openstreetmap.org",
+ issue: [
+ "letsencrypt.org",
+ ],
+ issuewild: [
+ "letsencrypt.org",
+ ],
+ }),
+
+ // Let the main domain handle the email
+
+ MX("@", 10, "a.mx.openstreetmap.org."),
+
+ // Delegate SPF policy to the main domain
+
+ SPF_BUILDER({
+ label: "@",
+ parts: [
+ "v=spf1",
+ "include:openstreetmap.org", // main openstreetmap.org spf record
+ "-all"
+ ]
+ }),
+
+ // Delegate MTA-STS policy to the main domain
+
+ CNAME("_mta-sts", "_mta-sts.openstreetmap.org."),
+
+ // Redirect en.openstreetmap.town to en.osm.town
+
+ A("en", NAGA_IPV4),
+ AAAA("en", NAGA_IPV6)
+
+);
\ No newline at end of file