From 6cf5aefc9346d0951699807f71629a15cd5feb65 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Thu, 17 Oct 2024 13:10:53 +1100 Subject: [PATCH] fix url records --- dnsconfig.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index ea5efc330..58bf90b84 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -71,12 +71,6 @@ for (var idx in domains) { ); } - if (domainData.record.URL) { - commit[domainName].push( - CNAME(subdomainName, "redirect.is-a.dev.", proxyState) - ); - } - // Handle MX records if (domainData.record.MX) { for (var mx in domainData.record.MX) { @@ -119,6 +113,14 @@ for (var idx in domains) { ); } } + + // Handle URL records + // Note: URL records are not actual DNS records, we have a server configured to support them instead. + if (domainData.record.URL) { + commit[domainName].push( + A(subdomainName, "192.0.2.1", proxy.on) + ); + } } // Commit all DNS records