1 var REG_NONE = NewRegistrar("none");
2 var REG_GANDI = NewRegistrar("gandi_v5");
3 var PROVIDER = NewDnsProvider("cloudflare");
9 var QUALIFY = function (name) {
10 return name + "." + DOMAIN + ".";
13 function loadTemplate(template) {
14 return function (domain, registrar) {
16 REGISTRAR = registrar;
18 require("src/" + template + ".js");
22 // Ensure that the reverse DNS records are in RFC 4183 notation
25 var IPV4 = require("src/ipv4.json");
26 var IPV6 = require("src/ipv6.json");
28 var HOST_RECORDS = [];
30 for (var name in IPV4) {
31 HOST_RECORDS.push(A(name, IPV4[name]));
34 for (var name in IPV6) {
35 HOST_RECORDS.push(AAAA(name, IPV6[name]));
38 var OPENSTREETMAP = loadTemplate("openstreetmap");
40 require("include/sshfp.js");
41 require("include/nominatim.js");
44 require("include/geo.js");
46 var GEO_NS_RECORDS = [];
49 OPENSTREETMAP("openstreetmap.org", REG_GANDI);
50 OPENSTREETMAP("openstreetmap.com", REG_GANDI);
51 OPENSTREETMAP("openstreetmap.net", REG_GANDI);
52 OPENSTREETMAP("openstreetmap.ca", REG_GANDI);
53 OPENSTREETMAP("openstreetmap.eu", REG_NONE);
54 OPENSTREETMAP("openstreetmap.pro", REG_GANDI);
55 OPENSTREETMAP("openstreetmap.gay", REG_GANDI);
56 OPENSTREETMAP("openstreetmaps.org", REG_GANDI);
57 OPENSTREETMAP("osm.org", REG_GANDI);
58 OPENSTREETMAP("openmaps.org", REG_GANDI);
59 OPENSTREETMAP("openstreetmap.io", REG_GANDI);
60 OPENSTREETMAP("osm.io", REG_GANDI);
61 OPENSTREETMAP("openstreetmap.li", REG_GANDI);
62 OPENSTREETMAP("openworldmap.org", REG_GANDI);
63 OPENSTREETMAP("freeosm.org", REG_GANDI);
64 OPENSTREETMAP("open-maps.org", REG_GANDI);
65 OPENSTREETMAP("open-maps.com", REG_GANDI);
66 OPENSTREETMAP("osmbugs.org", REG_GANDI);
67 OPENSTREETMAP("openstreetmap.ai", REG_GANDI);
68 OPENSTREETMAP("openstreetmap.am", REG_GANDI);
69 OPENSTREETMAP("openstreetmap.fi", REG_GANDI);
70 OPENSTREETMAP("openstreetmap.gr", REG_GANDI);
71 OPENSTREETMAP("openstreetmap.me", REG_GANDI);
72 OPENSTREETMAP("openstreetmap.mx", REG_GANDI);
73 OPENSTREETMAP("openstreetmap.nz", REG_GANDI);
74 OPENSTREETMAP("openstreetmap.pe", REG_GANDI);
75 OPENSTREETMAP("openstreetmap.ph", REG_GANDI);
76 OPENSTREETMAP("openstreetmap.sg", REG_GANDI);
77 OPENSTREETMAP("openstreetmap.tv", REG_GANDI);
78 OPENSTREETMAP("openstreetmap.wales", REG_GANDI);
79 OPENSTREETMAP("openstreetmapdata.org", REG_GANDI);
80 OPENSTREETMAP("openstreetmap.org.nz", REG_GANDI);
82 // Disable due to registration issue
83 // OPENSTREETMAP("openstreetmap.al", REG_NONE);
85 D_EXTEND("openstreetmap.org",
86 CNAME("_acme-challenge.tile", "bxve5ryiwwv7woiraq.fastly-validations.com.", TTL("10m")),
95 CNAME("_acme-challenge.tile", "21gvdfyyxjoc4lmsem.fastly-validations.com.", TTL("10m")),
101 // Mastodon redirects to en.osm.town
102 var OPENSTREETMAP_TOWN = loadTemplate("openstreetmap-town");
103 OPENSTREETMAP_TOWN("openstreetmap.town", REG_GANDI);
105 // Domain owned by Amanda McCann
108 // Managed independently by Guillaume Rischard
112 var OSM_LI = loadTemplate("osm-li");
114 OSM_LI("osm.li", REG_GANDI);
116 var OPENSTREETMAP_UK = loadTemplate("openstreetmap-uk");
118 OPENSTREETMAP_UK("openstreetmap.uk", REG_GANDI);
119 OPENSTREETMAP_UK("openstreetmap.org.uk", REG_GANDI);
120 OPENSTREETMAP_UK("openstreetmap.co.uk", REG_GANDI);
122 var OPENSTREETMAP_ZA = loadTemplate("openstreetmap-za");
124 OPENSTREETMAP_ZA("openstreetmap.org.za", REG_NONE);
125 OPENSTREETMAP_ZA("osm.org.za", REG_NONE);
127 var OSMFOUNDATION = loadTemplate("osmfoundation");
129 OSMFOUNDATION("osmfoundation.org", REG_GANDI);
131 var STATEOFTHEMAP = loadTemplate("stateofthemap");
133 STATEOFTHEMAP("stateofthemap.org", REG_GANDI);
134 STATEOFTHEMAP("stateofthemap.com", REG_GANDI);
135 STATEOFTHEMAP("sotm.org", REG_GANDI);
137 // The domain is registation is managed by FOSSGIS.de
138 var STATEOFTHEMAP_EU = loadTemplate("stateofthemap-eu");
139 STATEOFTHEMAP_EU("stateofthemap.eu", REG_NONE);
141 // State of the Map Madagascar
142 var OPENSTREETMAP_MG = loadTemplate("openstreetmap-mg");
143 OPENSTREETMAP_MG("openstreetmap.mg", REG_GANDI);
145 var OPENGEODATA = loadTemplate("opengeodata");
146 OPENGEODATA("opengeodata.org", REG_GANDI);
148 var SWITCH2OSM = loadTemplate("switch2osm");
150 SWITCH2OSM("switch2osm.org", REG_GANDI);
151 SWITCH2OSM("switch2osm.com", REG_GANDI);
153 var OSM2PGSQL = loadTemplate("osm2pgsql");
155 OSM2PGSQL("osm2pgsql.org", REG_GANDI);
156 OSM2PGSQL("osm2pgsql.com", REG_GANDI);
158 var IDEDITOR = loadTemplate("ideditor");
160 IDEDITOR("ideditor.com", REG_GANDI);
162 var OSMWIKI = loadTemplate("osm-wiki");
163 OSMWIKI("osm.wiki", REG_GANDI);
165 var PTR_HE_DUB_IPV4 = loadTemplate("ptr_he_dub_ipv4");
167 PTR_HE_DUB_IPV4(REV("184.104.226.96/27"), REG_NONE);
169 var PTR_HE_DUB_IPV6 = loadTemplate("ptr_he_dub_ipv6");
171 PTR_HE_DUB_IPV6(REV("2001:470:1:b3b::/64"), REG_NONE);
173 var PTR_EQUINIX_AMS_IPV4 = loadTemplate("ptr_equinix_ams_ipv4");
175 PTR_EQUINIX_AMS_IPV4(REV("82.199.86.96/27"), REG_NONE);
177 var PTR_EQUINIX_AMS_IPV6 = loadTemplate("ptr_equinix_ams_ipv6");
179 PTR_EQUINIX_AMS_IPV6(REV("2001:4d78:500:5e3::/64"), REG_NONE);
181 var PTR_EQUINIX_DUB_IPV4 = loadTemplate("ptr_equinix_dub_ipv4");
183 PTR_EQUINIX_DUB_IPV4(REV("87.252.214.96/27"), REG_NONE);
185 var PTR_EQUINIX_DUB_IPV6 = loadTemplate("ptr_equinix_dub_ipv6");
187 PTR_EQUINIX_DUB_IPV6(REV("2001:4d78:fe03:1c::/64"), REG_NONE);
189 // No immediate plans
190 // External DNS and hosting still up
191 // freethepostcode.org
193 // External DNS and hosting
194 // openstreetmap.cymru