ignore most staff TXT records + reserve more

This commit is contained in:
William Harrison
2025-04-23 16:17:07 +08:00
parent d875db0e43
commit e54324544d
11 changed files with 15 additions and 75 deletions
+5
View File
@@ -162,7 +162,12 @@ var ignored = [
IGNORE("@", "*"),
IGNORE("_acme-challenge", "TXT"),
IGNORE("_autodiscover._tcp", "SRV"),
IGNORE("_discord", "TXT"),
IGNORE("_dmarc", "TXT"),
IGNORE("_gh-is-a-dev-o", "TXT"),
IGNORE("_gh-is-a-dev-o.**", "TXT"),
IGNORE("_github-pages-challenge-is-a-dev", "TXT"),
IGNORE("_github-pages-challenge-is-a-dev.**", "TXT"),
IGNORE("_psl", "TXT"),
IGNORE("autoconfig", "CNAME"),
IGNORE("autodiscover", "CNAME"),
-9
View File
@@ -1,9 +0,0 @@
{
"owner": {
"username": "is-a-dev",
"email": "admin@is-a.dev"
},
"record": {
"TXT": ["dh=d5273eca7d19d9a734f62376816c287bc2613ef7"]
}
}
-9
View File
@@ -1,9 +0,0 @@
{
"owner": {
"username": "is-a-dev",
"email": "admin@is-a.dev"
},
"record": {
"TXT": "9ac06a2c1c"
}
}
@@ -1,9 +0,0 @@
{
"owner": {
"username": "is-a-dev",
"email": "admin@is-a.dev"
},
"record": {
"TXT": "9b2dd0cf1f2f48466e165d39351c97"
}
}
@@ -1,9 +0,0 @@
{
"owner": {
"username": "is-a-dev",
"email": "admin@is-a.dev"
},
"record": {
"TXT": "9aed675b73d2147d4bc644c3551ef9"
}
}
@@ -1,10 +0,0 @@
{
"description": "Requested by GitHub support for verification of a public suffix",
"owner": {
"username": "is-a-dev",
"email": "admin@is-a.dev"
},
"record": {
"TXT": "aa6e2c0b-6ba9-486e-b632-b66f87e2862b"
}
}
@@ -1,9 +0,0 @@
{
"owner": {
"username": "is-a-dev",
"email": "admin@is-a.dev"
},
"record": {
"TXT": "451887dc71c60fef6eb91e9b1ac27d"
}
}
-9
View File
@@ -1,9 +0,0 @@
{
"owner": {
"username": "is-a-dev",
"email": "admin@is-a.dev"
},
"record": {
"URL": "https://discord.gg/is-a-dev-830872854677422150"
}
}
-9
View File
@@ -1,9 +0,0 @@
{
"owner": {
"username": "zarqizoubir",
"email": "zarqi.ezzoubair@etu.uae.ac.ma"
},
"record": {
"CNAME": "zarqizoubir.github.io"
}
}
+6 -2
View File
@@ -139,7 +139,10 @@ function validateRecordValues(t, data, file) {
if (key === "CNAME") {
t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`);
t.true(value !== file, `${file}: CNAME cannot point to itself`);
t.true(value !== `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
if (data.owner.username.toLowerCase() !== "is-a-dev") {
t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`);
}
} else if (key === "URL") {
t.true(
value.startsWith("http://") || value.startsWith("https://"),
@@ -149,7 +152,8 @@ function validateRecordValues(t, data, file) {
// Check for self-referencing redirects
const urlHost = new URL(value).host;
t.false(urlHost === `${subdomain}.is-a.dev`, `${file}: URL cannot point to itself`);
t.true(isValidHostname(urlHost), `${file}: Invalid URL hostname for ${key}`);
t.false(urlHost === `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
}
}
+4
View File
@@ -21,6 +21,7 @@
"com",
"dash",
"dashboard",
"discord",
"dns",
"doc",
"documentation",
@@ -30,6 +31,9 @@
"file",
"files",
"get",
"git",
"github",
"gitlab",
"help",
"home",
"host",