X-Git-Url: https://git.openstreetmap.org./dns.git/blobdiff_plain/c9ae1f2330b7c51d74f28df2e35c89f0fe9b8fd3..5313824eeb3ee00b0ac1e360c8bf057dd0f74b46:/dnsconfig.js?ds=inline diff --git a/dnsconfig.js b/dnsconfig.js index 85c2f2d..5feacca 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -22,7 +22,18 @@ function loadTemplate(template) { // Ensure that the reverse DNS records are in RFC 4183 notation REVCOMPAT("rfc4183"); -require("src/hosts.js"); +var IPV4 = require("src/ipv4.json"); +var IPV6 = require("src/ipv6.json"); + +var HOST_RECORDS = []; + +for (var name in IPV4) { + HOST_RECORDS.push(A(name, IPV4[name])); +} + +for (var name in IPV6) { + HOST_RECORDS.push(AAAA(name, IPV6[name])); +} var OPENSTREETMAP = loadTemplate("openstreetmap"); @@ -74,6 +85,7 @@ OPENSTREETMAP("openstreetmap.org.nz", REG_GANDI); D_EXTEND("openstreetmap.org", CNAME("_acme-challenge.tile", "bxve5ryiwwv7woiraq.fastly-validations.com.", TTL("10m")), + HOST_RECORDS, SSHFP_RECORDS, GEO_NS_RECORDS, NOMINATIM_RECORDS @@ -82,6 +94,7 @@ D_EXTEND("openstreetmap.org", D_EXTEND("osm.org", CNAME("_acme-challenge.tile", "21gvdfyyxjoc4lmsem.fastly-validations.com.", TTL("10m")), + HOST_RECORDS, SSHFP_RECORDS );