]> git.openstreetmap.org Git - dns.git/blobdiff - src/openstreetmap-mg.js
Setup openstreetmap.mg to point to Github Pages
[dns.git] / src / openstreetmap-mg.js
diff --git a/src/openstreetmap-mg.js b/src/openstreetmap-mg.js
new file mode 100644 (file)
index 0000000..80ae23c
--- /dev/null
@@ -0,0 +1,29 @@
+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",
+    ],
+  }),
+
+  // Block email delivery
+
+  TXT("_dmarc", "v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s;"),
+  TXT("*._domainkey", "v=DKIM1; p="),
+  TXT("@", "v=spf1 -all"),
+
+  // Site hosted on github pages
+
+  ALIAS("@", "openstreetmap-madagascar.github.io."),
+  CNAME("www", "openstreetmap-madagascar.github.io."),
+
+  CNAME("sotm2024", "openstreetmap-madagascar.github.io.")
+
+);
\ No newline at end of file