X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/8eb06ec104e2e9015855936db2324d298f6349e2..ba4a2230d8c480f470ec571ef892595a21dfa873:/dnsconfig.js?ds=inline diff --git a/dnsconfig.js b/dnsconfig.js index 64efbf5..88b4218 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -1,10 +1,6 @@ -var REG_NONE = NewRegistrar("none", "NONE"); -var REG_GANDI = NewRegistrar("gandi_v5", "GANDI_V5"); -var PROVIDER = NewDnsProvider("cloudflare", "CLOUDFLAREAPI"); - -var CF_TTL_ANY = TTL(1); - -DEFAULTS(DefaultTTL("24h")); +var REG_NONE = NewRegistrar("none"); +var REG_GANDI = NewRegistrar("gandi_v5"); +var PROVIDER = NewDnsProvider("cloudflare"); var DOMAIN; var REGISTRAR; @@ -28,27 +24,76 @@ function loadTemplate(template) { }; } +require("src/hosts.js"); + var OPENSTREETMAP = loadTemplate("openstreetmap"); -require("include/tile.js"); -require("include/render.js"); +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")) +] -OPENSTREETMAP("openstreetmap.org", REG_GANDI, TILE_RECORDS, RENDER_RECORDS); +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); +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"); @@ -58,8 +103,8 @@ OPENSTREETMAP_UK("openstreetmap.co.uk", REG_GANDI); var OPENSTREETMAP_ZA = loadTemplate("openstreetmap-za"); -OPENSTREETMAP_UK("openstreetmap.org.za", REG_NONE); -OPENSTREETMAP_UK("osm.org.za", REG_NONE); +OPENSTREETMAP_ZA("openstreetmap.org.za", REG_NONE); +OPENSTREETMAP_ZA("osm.org.za", REG_NONE); var OSMFOUNDATION = loadTemplate("osmfoundation"); @@ -71,15 +116,53 @@ 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); -STATEOFTHEMAP("stateofthemap.eu", REG_GANDI); +// 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_EQUINIX_AMS_IPV4 = loadTemplate("ptr_equinix_ams_ipv4"); + +PTR_EQUINIX_AMS_IPV4("128-27.179.104.184.in-addr.arpa", REG_NONE); + +var PTR_EQUINIX_AMS_IPV6 = loadTemplate("ptr_equinix_ams_ipv6"); + +PTR_EQUINIX_AMS_IPV6(REV("2001:470:1:fa1::/64"), REG_NONE); + +var PTR_EQUINIX_DUB_IPV4 = loadTemplate("ptr_equinix_dub_ipv4"); + +PTR_EQUINIX_DUB_IPV4("96-27.226.104.184.in-addr.arpa", REG_NONE); + +var PTR_EQUINIX_DUB_IPV6 = loadTemplate("ptr_equinix_dub_ipv6"); + +PTR_EQUINIX_DUB_IPV6(REV("2001:470:1:b3b::/64"), REG_NONE); + +// No immediate plans +// External DNS and hosting still up +// freethepostcode.org + +// External DNS and hosting +// openstreetmap.cymru