From 7df237ab044d059fe1f88b2d6ec877d1a36764b5 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 24 Feb 2025 22:24:08 +0000 Subject: [PATCH] Add NZ specific zone --- dnsconfig.js | 7 +++++-- src/openstreetmap-nz.js | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 src/openstreetmap-nz.js diff --git a/dnsconfig.js b/dnsconfig.js index b3f5efb..25f32e0 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -70,14 +70,12 @@ OPENSTREETMAP("openstreetmap.fi", REG_GANDI); OPENSTREETMAP("openstreetmap.gr", REG_GANDI); OPENSTREETMAP("openstreetmap.me", REG_GANDI); OPENSTREETMAP("openstreetmap.mx", REG_GANDI); -OPENSTREETMAP("openstreetmap.nz", REG_GANDI); OPENSTREETMAP("openstreetmap.pe", REG_GANDI); OPENSTREETMAP("openstreetmap.ph", REG_GANDI); OPENSTREETMAP("openstreetmap.sg", REG_GANDI); OPENSTREETMAP("openstreetmap.tv", REG_GANDI); OPENSTREETMAP("openstreetmap.wales", REG_GANDI); OPENSTREETMAP("openstreetmapdata.org", REG_GANDI); -OPENSTREETMAP("openstreetmap.org.nz", REG_GANDI); // Disable due to registration issue // OPENSTREETMAP("openstreetmap.al", REG_NONE); @@ -116,6 +114,11 @@ var OSM_LI = loadTemplate("osm-li"); OSM_LI("osm.li", REG_GANDI); +var OPENSTREETMAP_NZ = loadTemplate("openstreetmap-nz"); + +OPENSTREETMAP_NZ("openstreetmap.nz", REG_GANDI); +OPENSTREETMAP_NZ("openstreetmap.org.nz", REG_GANDI); + var OPENSTREETMAP_UK = loadTemplate("openstreetmap-uk"); OPENSTREETMAP_UK("openstreetmap.uk", REG_GANDI); diff --git a/src/openstreetmap-nz.js b/src/openstreetmap-nz.js new file mode 100644 index 0000000..e2b903d --- /dev/null +++ b/src/openstreetmap-nz.js @@ -0,0 +1,41 @@ +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", + ], + }), + + // Let the main domain handle the email + + MX("@", 10, "a.mx.openstreetmap.org."), + + // Delegate SPF policy to the main domain + + SPF_BUILDER({ + label: "@", + parts: [ + "v=spf1", + "include:openstreetmap.org", // main openstreetmap.org spf record + "-all" + ] + }), + + // Delegate MTA-STS policy to the main domain + + CNAME("_mta-sts", "_mta-sts.openstreetmap.org."), + + // Main web site + + ALIAS("@", "www.openstreetmap.org."), + CNAME("www", "www.openstreetmap.org."), + CNAME("api", "api.openstreetmap.org.") + +); -- 2.39.5