From c53ad352454bf81f788a5f7997905b9ea838b815 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 19 Oct 2024 11:59:10 +0800 Subject: [PATCH] Update dnsconfig.js --- dnsconfig.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index b8a4107da9..2d33fe6afc 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -88,18 +88,12 @@ for (var subdomain in domains) { // Handle URL records if (domainData.record.URL) { commit.push( - A(subdomainName, "45.85.238.5", { cloudflare_proxy: "on" }), - TXT("_redirect." + subdomainName, "v=txtv0;type=host;to=" + domainData.record.URL) + A(subdomainName, "192.0.2.1", { cloudflare_proxy: "on" }), + // CF_SINGLE_REDIRECT(fullSubdomain, 302, 'http.host eq "' + fullSubdomain + '"', 'concat("' + domainData.record.URL + '", "")') ) } } -// Test -commit.push( - A("test", "192.0.2.1", { cloudflare_proxy: "on" }), - CF_SINGLE_REDIRECT("test.is-a.dev", 302, 'http.host eq "test.is-a.dev"', 'concat("https://google.com", "")') -) - // Exceptions // is-a.dev commit.push(IGNORE("@", "MX"));