mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-16 10:15:18 +00:00
ignore wildcard dns records + put txts in quotations
This commit is contained in:
1 parent
de85d94465
commit
ab89bbf1f2
1 file changed
+4
-2
+4
-2
@@ -77,7 +77,7 @@ for (var idx in domains) {
|
|||||||
if (domainData.record.TXT) {
|
if (domainData.record.TXT) {
|
||||||
if (Array.isArray(domainData.record.TXT)) {
|
if (Array.isArray(domainData.record.TXT)) {
|
||||||
for (var txt in domainData.record.TXT) {
|
for (var txt in domainData.record.TXT) {
|
||||||
commit.push(TXT(subdomainName, domainData.record.TXT[txt]));
|
commit.push(TXT(subdomainName, '"' + domainData.record.TXT[txt]) + '"');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
commit.push(TXT(subdomainName, domainData.record.TXT));
|
commit.push(TXT(subdomainName, domainData.record.TXT));
|
||||||
@@ -87,7 +87,7 @@ for (var idx in domains) {
|
|||||||
// Handle URL records
|
// Handle URL records
|
||||||
if (domainData.record.URL) {
|
if (domainData.record.URL) {
|
||||||
commit.push(
|
commit.push(
|
||||||
A(subdomainName, "45.85.238.5", { cloudflare_proxy: "on" }),
|
A(subdomainName, "45.85.238.5", { cloudflare_proxy: "off" }),
|
||||||
TXT("_redirect." + subdomainName, "v=txtv0;type=host;to=" + domainData.record.URL)
|
TXT("_redirect." + subdomainName, "v=txtv0;type=host;to=" + domainData.record.URL)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -96,6 +96,8 @@ for (var idx in domains) {
|
|||||||
// is-a.dev
|
// is-a.dev
|
||||||
commit.push(IGNORE("@", "MX"));
|
commit.push(IGNORE("@", "MX"));
|
||||||
commit.push(IGNORE("@", "TXT"));
|
commit.push(IGNORE("@", "TXT"));
|
||||||
|
// *.is-a.dev
|
||||||
|
commit.push(IGNORE("\\*"));
|
||||||
// _acme-challenge.is-a.dev
|
// _acme-challenge.is-a.dev
|
||||||
commit.push(IGNORE("_acme-challenge", "TXT"));
|
commit.push(IGNORE("_acme-challenge", "TXT"));
|
||||||
// _dmarc.is-a.dev
|
// _dmarc.is-a.dev
|
||||||
|
|||||||
Reference in new issue
Block a user