]> git.openstreetmap.org Git - dns.git/commitdiff
Add DNS zone for osm2pgsql.{org,com}
authorTom Hughes <tom@compton.nu>
Fri, 31 Jul 2020 23:07:45 +0000 (00:07 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 31 Jul 2020 23:07:45 +0000 (00:07 +0100)
dnsconfig.js
src/osm2pgsql.js [new file with mode: 0644]

index 1760e1ab11afd403602a38d7b18008304b6b8f95..02a48043ae2537e94c2e1ea557d861b55a0b5b9d 100644 (file)
@@ -92,3 +92,8 @@ var SWITCH2OSM = loadTemplate("switch2osm");
 
 SWITCH2OSM("switch2osm.org", REG_GANDI);
 SWITCH2OSM("switch2osm.com", REG_GANDI);
+
+var OSM2PGSQL = loadTemplate("osm2pgsql");
+
+OSM2PGSQL("osm2pgsql.org", REG_GANDI);
+OSM2PGSQL("osm2pgsql.com", REG_GANDI);
diff --git a/src/osm2pgsql.js b/src/osm2pgsql.js
new file mode 100644 (file)
index 0000000..770979a
--- /dev/null
@@ -0,0 +1,16 @@
+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"),
+
+  // Main web server and it's aliases
+
+  A("@", "138.201.190.130"),
+  AAAA("@", "2a01:4f8:1c17:6433::1"),
+  A("www", "138.201.190.130"),
+  AAAA("www", "2a01:4f8:1c17:6433::1")
+
+);