From 2decb257161b6886e8c171a8e7ecee9d346b6654 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 26 Sep 2022 17:06:59 +0100 Subject: [PATCH] Switch IPv4 reverse to use RFC2317 style delegation --- dnsconfig.js | 4 +++- src/ptr_equinix_dub_ipv4.js | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index 8a8ffef..d2a0b7d 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -127,7 +127,9 @@ var IDEDITOR = loadTemplate("ideditor"); IDEDITOR("ideditor.com", REG_GANDI); var PTR_EQUINIX_DUB_IPV4 = loadTemplate("ptr_equinix_dub_ipv4"); -PTR_EQUINIX_DUB_IPV4("96-27.226.104.184.in-addr.arpa", REG_NONE); + +PTR_EQUINIX_DUB_IPV4(REV("184.104.226.96/27"), REG_NONE); var PTR_EQUINIX_DUB_IPV6 = loadTemplate("ptr_equinix_dub_ipv6"); + PTR_EQUINIX_DUB_IPV6(REV("2001:470:1:b3b::/64"), REG_NONE); diff --git a/src/ptr_equinix_dub_ipv4.js b/src/ptr_equinix_dub_ipv4.js index 14be3f8..e354094 100644 --- a/src/ptr_equinix_dub_ipv4.js +++ b/src/ptr_equinix_dub_ipv4.js @@ -1,15 +1,15 @@ D(DOMAIN, REGISTRAR, DnsProvider(PROVIDER), - PTR(SWITCH1DUB_IPV4.split(".").pop(), "switch1.dub.openstreetmap.org."), - PTR(FAFNIR_IPV4.split(".").pop(), "fafnir.openstreetmap.org."), - PTR(SPIKE01_IPV4.split(".").pop(), "spike-01.openstreetmap.org."), - PTR(SPIKE02_IPV4.split(".").pop(), "spike-02.openstreetmap.org."), - PTR(SPIKE03_IPV4.split(".").pop(), "spike-03.openstreetmap.org."), - PTR(IDRIS_IPV4.split(".").pop(), "idris.openstreetmap.org."), - PTR(KONQI_IPV4.split(".").pop(), "konqi.openstreetmap.org."), - PTR(NAGA_IPV4.split(".").pop(), "naga.openstreetmap.org."), - PTR(CULEBRE_IPV4.split(".").pop(), "culebre.openstreetmap.org."), - PTR(HORNTAIL_IPV4.split(".").pop(), "horntail.openstreetmap.org."), - PTR(GORWEN_IPV4.split(".").pop(), "gorwen.openstreetmap.org."), - PTR(JAKELONG_IPV4.split(".").pop(), "jakelong.openstreetmap.org."), - PTR(LONGMA_IPV4.split(".").pop(), "longma.openstreetmap.org.") + PTR(SWITCH1DUB_IPV4, "switch1.dub.openstreetmap.org."), + PTR(FAFNIR_IPV4, "fafnir.openstreetmap.org."), + PTR(SPIKE01_IPV4, "spike-01.openstreetmap.org."), + PTR(SPIKE02_IPV4, "spike-02.openstreetmap.org."), + PTR(SPIKE03_IPV4, "spike-03.openstreetmap.org."), + PTR(IDRIS_IPV4, "idris.openstreetmap.org."), + PTR(KONQI_IPV4, "konqi.openstreetmap.org."), + PTR(NAGA_IPV4, "naga.openstreetmap.org."), + PTR(CULEBRE_IPV4, "culebre.openstreetmap.org."), + PTR(HORNTAIL_IPV4, "horntail.openstreetmap.org."), + PTR(GORWEN_IPV4, "gorwen.openstreetmap.org."), + PTR(JAKELONG_IPV4, "jakelong.openstreetmap.org."), + PTR(LONGMA_IPV4, "longma.openstreetmap.org.") ); -- 2.39.5