]> git.openstreetmap.org Git - dns.git/commitdiff
Add ideditor.com domain
authorGrant Slater <git@firefishy.com>
Wed, 7 Sep 2022 17:26:49 +0000 (18:26 +0100)
committerGrant Slater <git@firefishy.com>
Wed, 7 Sep 2022 17:27:02 +0000 (18:27 +0100)
dnsconfig.js
src/ideditor.js [new file with mode: 0644]

index 2be2a472bfc1f92955c0e31d276637def4680704..9745f9a166bc3b7f39c4a18c65ef3d27a49ae82c 100644 (file)
@@ -121,3 +121,7 @@ var OSM2PGSQL = loadTemplate("osm2pgsql");
 
 OSM2PGSQL("osm2pgsql.org", REG_GANDI);
 OSM2PGSQL("osm2pgsql.com", REG_GANDI);
+
+var IDEDITOR = loadTemplate("ideditor");
+
+IDEDITOR("ideditor.com", REG_GANDI);
\ No newline at end of file
diff --git a/src/ideditor.js b/src/ideditor.js
new file mode 100644 (file)
index 0000000..3d2fd64
--- /dev/null
@@ -0,0 +1,34 @@
+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",
+    ],
+  }),
+
+  // 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("@", "192.30.252.153"),
+  A("@", "192.30.252.154"),
+  A("www", "192.30.252.153"),
+  A("www", "192.30.252.154")
+
+);
\ No newline at end of file