mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 10:15:47 +00:00
Update dnsconfig.js
This commit is contained in:
1 parent
c21dec7038
commit
c53ad35245
1 file changed
+2
-8
+2
-8
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user