-
Notifications
You must be signed in to change notification settings - Fork 13
/
dnsconfig.js
176 lines (126 loc) · 5.17 KB
/
dnsconfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
var REG_NONE = NewRegistrar("none");
var REG_GANDI = NewRegistrar("gandi_v5");
var PROVIDER = NewDnsProvider("cloudflare");
var DOMAIN;
var REGISTRAR;
var DYNAMIC_RECORDS;
var QUALIFY = function (name) {
return name + "." + DOMAIN + ".";
};
function loadTemplate(template) {
return function (domain, registrar) {
DOMAIN = domain;
REGISTRAR = registrar;
DYNAMIC_RECORDS = [];
for (var i = 2; i < arguments.length; i++) {
DYNAMIC_RECORDS = DYNAMIC_RECORDS.concat(arguments[i]);
}
require("src/" + template + ".js");
};
}
require("src/hosts.js");
var OPENSTREETMAP = loadTemplate("openstreetmap");
require("include/sshfp.js");
require("include/nominatim.js");
try {
require("include/geo.js");
} catch (e) {
var GEO_NS_RECORDS = [];
}
OPENSTREETMAP_ORG_RECORDS = [
CNAME("_acme-challenge.tile", "bxve5ryiwwv7woiraq.fastly-validations.com.", TTL("10m"))
]
OSM_ORG_RECORDS = [
CNAME("_acme-challenge.tile", "21gvdfyyxjoc4lmsem.fastly-validations.com.", TTL("10m"))
]
OPENSTREETMAP("openstreetmap.org", REG_GANDI, OPENSTREETMAP_ORG_RECORDS, SSHFP_RECORDS, GEO_NS_RECORDS, NOMINATIM_RECORDS);
OPENSTREETMAP("openstreetmap.com", REG_GANDI);
OPENSTREETMAP("openstreetmap.net", REG_GANDI);
OPENSTREETMAP("openstreetmap.ca", REG_GANDI);
OPENSTREETMAP("openstreetmap.eu", REG_NONE);
OPENSTREETMAP("openstreetmap.pro", REG_GANDI);
OPENSTREETMAP("openstreetmap.gay", REG_GANDI);
OPENSTREETMAP("openstreetmaps.org", REG_GANDI);
OPENSTREETMAP("osm.org", REG_GANDI, OSM_ORG_RECORDS, SSHFP_RECORDS);
OPENSTREETMAP("openmaps.org", REG_GANDI);
OPENSTREETMAP("openstreetmap.io", REG_GANDI);
OPENSTREETMAP("osm.io", REG_GANDI);
OPENSTREETMAP("openstreetmap.li", REG_GANDI);
OPENSTREETMAP("openworldmap.org", REG_GANDI);
OPENSTREETMAP("freeosm.org", REG_GANDI);
OPENSTREETMAP("open-maps.org", REG_GANDI);
OPENSTREETMAP("open-maps.com", REG_GANDI);
OPENSTREETMAP("osmbugs.org", REG_GANDI);
OPENSTREETMAP("openstreetmap.ai", REG_GANDI);
OPENSTREETMAP("openstreetmap.am", REG_GANDI);
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);
// Disable due to registration issue
// OPENSTREETMAP("openstreetmap.al", REG_NONE);
// Mastodon redirects to en.osm.town
var OPENSTREETMAP_TOWN = loadTemplate("openstreetmap-town");
OPENSTREETMAP_TOWN("openstreetmap.town", REG_GANDI);
// Domain owned by Amanda McCann
// osm.town
// Managed independently by Guillaume Rischard
// openstreetmap.lu
// osm.lu
var OSM_LI = loadTemplate("osm-li");
OSM_LI("osm.li", REG_GANDI);
var OPENSTREETMAP_UK = loadTemplate("openstreetmap-uk");
OPENSTREETMAP_UK("openstreetmap.uk", REG_GANDI);
OPENSTREETMAP_UK("openstreetmap.org.uk", REG_GANDI);
OPENSTREETMAP_UK("openstreetmap.co.uk", REG_GANDI);
var OPENSTREETMAP_ZA = loadTemplate("openstreetmap-za");
OPENSTREETMAP_ZA("openstreetmap.org.za", REG_NONE);
OPENSTREETMAP_ZA("osm.org.za", REG_NONE);
var OSMFOUNDATION = loadTemplate("osmfoundation");
OSMFOUNDATION("osmfoundation.org", REG_GANDI);
var STATEOFTHEMAP = loadTemplate("stateofthemap");
STATEOFTHEMAP("stateofthemap.org", REG_GANDI);
STATEOFTHEMAP("stateofthemap.com", REG_GANDI);
STATEOFTHEMAP("sotm.org", REG_GANDI);
// The domain is registation is managed by FOSSGIS.de
var STATEOFTHEMAP_EU = loadTemplate("stateofthemap-eu");
STATEOFTHEMAP_EU("stateofthemap.eu", REG_NONE);
// State of the Map Madagascar
var OPENSTREETMAP_MG = loadTemplate("openstreetmap-mg");
OPENSTREETMAP_MG("openstreetmap.mg", REG_GANDI);
var OPENGEODATA = loadTemplate("opengeodata");
OPENGEODATA("opengeodata.org", REG_GANDI);
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);
var IDEDITOR = loadTemplate("ideditor");
IDEDITOR("ideditor.com", REG_GANDI);
var OSMWIKI = loadTemplate("osm-wiki");
OSMWIKI("osm.wiki", REG_GANDI);
var PTR_HE_DUB_IPV4 = loadTemplate("ptr_he_dub_ipv4");
PTR_HE_DUB_IPV4("96-27.226.104.184.in-addr.arpa", REG_NONE);
var PTR_HE_DUB_IPV6 = loadTemplate("ptr_he_dub_ipv6");
PTR_HE_DUB_IPV6(REV("2001:470:1:b3b::/64"), REG_NONE);
var PTR_EQUINIX_AMS_IPV4 = loadTemplate("ptr_equinix_ams_ipv4");
PTR_EQUINIX_AMS_IPV4("96-27.86.199.82.in-addr.arpa", REG_NONE);
var PTR_EQUINIX_AMS_IPV6 = loadTemplate("ptr_equinix_ams_ipv6");
PTR_EQUINIX_AMS_IPV6(REV("2001:4d78:500:5e3::/64"), REG_NONE);
var PTR_EQUINIX_DUB_IPV4 = loadTemplate("ptr_equinix_dub_ipv4");
PTR_EQUINIX_DUB_IPV4("96-27.214.252.87.in-addr.arpa", REG_NONE);
var PTR_EQUINIX_DUB_IPV6 = loadTemplate("ptr_equinix_dub_ipv6");
PTR_EQUINIX_DUB_IPV6(REV("2001:4d78:fe03:1c::/64"), REG_NONE);
// No immediate plans
// External DNS and hosting still up
// freethepostcode.org
// External DNS and hosting
// openstreetmap.cymru