From d6450f20354e504b162de5250043efec7df4270d Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 14 Jan 2025 12:46:17 +0000 Subject: [PATCH] Use REV for rfc4183 PTR records --- dnsconfig.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index ed26dfd..77f9c0c 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -24,6 +24,9 @@ function loadTemplate(template) { }; } +// Ensure that the reverse DNS records are in RFC 4183 notation +REVCOMPAT("rfc4183"); + require("src/hosts.js"); var OPENSTREETMAP = loadTemplate("openstreetmap"); @@ -147,7 +150,7 @@ 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); +PTR_HE_DUB_IPV4(REV("184.104.226.96/27"), REG_NONE); var PTR_HE_DUB_IPV6 = loadTemplate("ptr_he_dub_ipv6"); @@ -155,7 +158,7 @@ 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); +PTR_EQUINIX_AMS_IPV4(REV("82.199.86.96/27"), REG_NONE); var PTR_EQUINIX_AMS_IPV6 = loadTemplate("ptr_equinix_ams_ipv6"); @@ -163,7 +166,7 @@ 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); +PTR_EQUINIX_DUB_IPV4(REV("87.252.214.96/27"), REG_NONE); var PTR_EQUINIX_DUB_IPV6 = loadTemplate("ptr_equinix_dub_ipv6"); -- 2.39.5