From 76aab59fd1e2d5cf9a042f44061cbd06c3f75dd4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 1 Aug 2020 00:07:45 +0100 Subject: [PATCH] Add DNS zone for osm2pgsql.{org,com} --- dnsconfig.js | 5 +++++ src/osm2pgsql.js | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/osm2pgsql.js 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") + +); -- 2.43.2