From: Tom Hughes Date: Fri, 31 Jul 2020 23:07:45 +0000 (+0100) Subject: Add DNS zone for osm2pgsql.{org,com} X-Git-Url: https://git.openstreetmap.org./dns.git/commitdiff_plain/76aab59fd1e2d5cf9a042f44061cbd06c3f75dd4 Add DNS zone for osm2pgsql.{org,com} --- diff --git a/dnsconfig.js b/dnsconfig.js index 1760e1a..02a4804 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -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 index 0000000..770979a --- /dev/null +++ b/src/osm2pgsql.js @@ -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") + +);