mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-18 18:15:27 +00:00
updates
This commit is contained in:
1 parent
2807153a71
commit
79d807cd01
2 files changed
+2
-36
No files matched your search
@@ -81,25 +81,3 @@ t("Nested subdomains should be owned by the parent subdomain's owner", (t) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
t("Subdomains containing an underscore can only have specific records", (t) => {
|
|
||||||
files.forEach((file) => {
|
|
||||||
const subdomain = file.replace(/\.json$/, "");
|
|
||||||
|
|
||||||
if (subdomain.includes("_")) {
|
|
||||||
const data = getDomainData(subdomain);
|
|
||||||
const recordKeys = Object.keys(data.record);
|
|
||||||
|
|
||||||
if (subdomain.startsWith("_acme-challenge.") || subdomain.includes("._domainkey.")) {
|
|
||||||
t.true(
|
|
||||||
recordKeys.every((key) => new Set(["TXT", "CNAME"]).has(key)),
|
|
||||||
`${file}: This type of subdomain can only have TXT or CNAME records`
|
|
||||||
);
|
|
||||||
} else if (subdomain.includes("._tcp.") || subdomain.includes("._udp.")) {
|
|
||||||
t.deepEqual(recordKeys, ["SRV"], `${file}: This type of subdomain can only have SRV records`);
|
|
||||||
} else {
|
|
||||||
t.deepEqual(recordKeys, ["TXT"], `${file}: Subdomains with underscores can only have TXT records`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
+2
-14
@@ -7,7 +7,6 @@
|
|||||||
"account",
|
"account",
|
||||||
"accounts",
|
"accounts",
|
||||||
"admin",
|
"admin",
|
||||||
"admin[1-99]",
|
|
||||||
"admins",
|
"admins",
|
||||||
"administrator",
|
"administrator",
|
||||||
"administrators",
|
"administrators",
|
||||||
@@ -30,12 +29,10 @@
|
|||||||
"chat",
|
"chat",
|
||||||
"checkout",
|
"checkout",
|
||||||
"cname",
|
"cname",
|
||||||
"cname[1-99]",
|
|
||||||
"co",
|
"co",
|
||||||
"codeofconduct",
|
"codeofconduct",
|
||||||
"code-of-conduct",
|
"code-of-conduct",
|
||||||
"com",
|
"com",
|
||||||
"com[1-9]",
|
|
||||||
"con",
|
"con",
|
||||||
"confirm",
|
"confirm",
|
||||||
"confirmation",
|
"confirmation",
|
||||||
@@ -54,7 +51,6 @@
|
|||||||
"example",
|
"example",
|
||||||
"feedback",
|
"feedback",
|
||||||
"file",
|
"file",
|
||||||
"file[1-9999]",
|
|
||||||
"files",
|
"files",
|
||||||
"finance",
|
"finance",
|
||||||
"forgot",
|
"forgot",
|
||||||
@@ -64,7 +60,6 @@
|
|||||||
"help",
|
"help",
|
||||||
"helpdesk",
|
"helpdesk",
|
||||||
"helper",
|
"helper",
|
||||||
"helper[1-99]",
|
|
||||||
"helpers",
|
"helpers",
|
||||||
"hostmaster",
|
"hostmaster",
|
||||||
"info",
|
"info",
|
||||||
@@ -75,7 +70,6 @@
|
|||||||
"license",
|
"license",
|
||||||
"login",
|
"login",
|
||||||
"logout",
|
"logout",
|
||||||
"lpt[1-9]",
|
|
||||||
"m",
|
"m",
|
||||||
"mail",
|
"mail",
|
||||||
"maintainer",
|
"maintainer",
|
||||||
@@ -84,7 +78,6 @@
|
|||||||
"media",
|
"media",
|
||||||
"mobile",
|
"mobile",
|
||||||
"mod",
|
"mod",
|
||||||
"mod[1-99]",
|
|
||||||
"mods",
|
"mods",
|
||||||
"moderator",
|
"moderator",
|
||||||
"moderators",
|
"moderators",
|
||||||
@@ -96,10 +89,9 @@
|
|||||||
"notifications",
|
"notifications",
|
||||||
"notify",
|
"notify",
|
||||||
"ns",
|
"ns",
|
||||||
"ns[1-99]",
|
"ns[1-9]",
|
||||||
"nul",
|
"nul",
|
||||||
"oauth",
|
"oauth",
|
||||||
"oauth[1-99]",
|
|
||||||
"official",
|
"official",
|
||||||
"operations",
|
"operations",
|
||||||
"ops",
|
"ops",
|
||||||
@@ -134,7 +126,6 @@
|
|||||||
"signout",
|
"signout",
|
||||||
"signup",
|
"signup",
|
||||||
"srv",
|
"srv",
|
||||||
"srv[1-99]",
|
|
||||||
"staff",
|
"staff",
|
||||||
"staging",
|
"staging",
|
||||||
"statistics",
|
"statistics",
|
||||||
@@ -147,7 +138,6 @@
|
|||||||
"system",
|
"system",
|
||||||
"teams",
|
"teams",
|
||||||
"test",
|
"test",
|
||||||
"test[1-9999]",
|
|
||||||
"termsofservice",
|
"termsofservice",
|
||||||
"terms-of-service",
|
"terms-of-service",
|
||||||
"tld",
|
"tld",
|
||||||
@@ -155,15 +145,13 @@
|
|||||||
"tokens",
|
"tokens",
|
||||||
"tos",
|
"tos",
|
||||||
"txt",
|
"txt",
|
||||||
"txt[1-9999]",
|
|
||||||
"url",
|
"url",
|
||||||
"url[1-9999]",
|
|
||||||
"user",
|
"user",
|
||||||
"users",
|
"users",
|
||||||
"webmail",
|
"webmail",
|
||||||
"webmaster",
|
"webmaster",
|
||||||
"whois",
|
"whois",
|
||||||
"www[1-99]",
|
"www[1-9]",
|
||||||
"wwww",
|
"wwww",
|
||||||
"your-domain-name"
|
"your-domain-name"
|
||||||
]
|
]
|
||||||
Reference in new issue
Block a user