Update dnsconfig.js

This commit is contained in:
William Harrison authored and GitHub committed 2024-10-19 11:59:10 +08:00
1 parent c21dec7038
commit c53ad35245
1 file changed
+2 -8
+2 -8
View File
@@ -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"));