X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/6581b7b56727cecfc196727e1083b4d502cf1a80..165ad98b59b02e4042859c6a9cf169187087ce39:/dnsconfig.js diff --git a/dnsconfig.js b/dnsconfig.js index 1c72874..184f0dc 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -1,6 +1,6 @@ -var REG_NONE = NewRegistrar("none", "NONE"); -var REG_GANDI = NewRegistrar("gandi_v5", "GANDI_V5"); -var PROVIDER = NewDnsProvider("cloudflare", "CLOUDFLAREAPI"); +var REG_NONE = NewRegistrar("none"); +var REG_GANDI = NewRegistrar("gandi_v5"); +var PROVIDER = NewDnsProvider("cloudflare"); var DOMAIN; var REGISTRAR; @@ -31,7 +31,13 @@ var OPENSTREETMAP = loadTemplate("openstreetmap"); require("include/sshfp.js"); require("include/nominatim.js"); -OPENSTREETMAP("openstreetmap.org", REG_GANDI, SSHFP_RECORDS, NOMINATIM_RECORDS); +try { + require("include/geo.js"); +} catch (e) { + var GEO_NS_RECORDS = []; +} + +OPENSTREETMAP("openstreetmap.org", REG_GANDI, SSHFP_RECORDS, GEO_NS_RECORDS, NOMINATIM_RECORDS); OPENSTREETMAP("openstreetmap.com", REG_GANDI); OPENSTREETMAP("openstreetmap.net", REG_GANDI); OPENSTREETMAP("openstreetmap.ca", REG_GANDI);