From b7d296b2326843fed75e936b8abd038a180ba0cb Mon Sep 17 00:00:00 2001 From: Jon <66625200+Kyro3400@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:37:15 -0500 Subject: [PATCH 01/63] chore: Added back owner section Seeing if this works or does really anything --- tests/json.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/json.test.js b/tests/json.test.js index 6bca94e5..c3274b6e 100644 --- a/tests/json.test.js +++ b/tests/json.test.js @@ -3,7 +3,7 @@ const fs = require("fs-extra"); const path = require("path"); const requiredFields = { - //owner: "object", + owner: "object", record: "object" }; @@ -66,6 +66,7 @@ t("All files should have valid optional owner fields", (t) => { const data = fs.readJsonSync(path.join(domainsPath, file)); validateOptionalFields(t, data, optionalOwnerFields, file); + validateOptionalFields(t, data.owner, optionalOwnerFields, file); if (data.owner.email) { t.regex(data.owner.email, emailRegex, `${file}: Owner email should be a valid email address`); From c68daf7471a31ae299fdf3e170d6c6436615d76f Mon Sep 17 00:00:00 2001 From: Jon <66625200+Kyro3400@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:39:57 -0500 Subject: [PATCH 02/63] Fix: Switch email to OWL This should stop showing error for this file. --- domains/sdheeraj.is-cool.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/sdheeraj.is-cool.dev.json b/domains/sdheeraj.is-cool.dev.json index de9db7db..a1216e2c 100644 --- a/domains/sdheeraj.is-cool.dev.json +++ b/domains/sdheeraj.is-cool.dev.json @@ -3,7 +3,7 @@ "subdomain": "sdheeraj", "owner": { - "email": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM" + "OWL": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM" }, "record": { From eee5ea5bdf8c1cec605e49da4c336d70271b28f3 Mon Sep 17 00:00:00 2001 From: Jon <66625200+Kyro3400@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:42:26 -0500 Subject: [PATCH 03/63] Update srimaruthiricemill.localplayer.dev.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should stop error about subdomain’s A record --- domains/srimaruthiricemill.localplayer.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/srimaruthiricemill.localplayer.dev.json b/domains/srimaruthiricemill.localplayer.dev.json index 4af62ccd..f0243dd5 100644 --- a/domains/srimaruthiricemill.localplayer.dev.json +++ b/domains/srimaruthiricemill.localplayer.dev.json @@ -9,7 +9,7 @@ }, "record": { - "A": ["100.81.221.118"] + "AAAA": ["100.81.221.118"] }, "proxied": false From 233bb27c4809ccf18c44c1b1b5bcc7c8e56e5e54 Mon Sep 17 00:00:00 2001 From: Jon <66625200+Kyro3400@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:51:56 -0500 Subject: [PATCH 04/63] Update srimaruthiricemill.localplayer.dev.json --- domains/srimaruthiricemill.localplayer.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/srimaruthiricemill.localplayer.dev.json b/domains/srimaruthiricemill.localplayer.dev.json index f0243dd5..c6b31576 100644 --- a/domains/srimaruthiricemill.localplayer.dev.json +++ b/domains/srimaruthiricemill.localplayer.dev.json @@ -9,7 +9,7 @@ }, "record": { - "AAAA": ["100.81.221.118"] + "AAA": ["100.81.221.118"] }, "proxied": false From 829a9d8c9e0cce00010e83dffd4b84b531afb5d8 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 16:55:13 -0500 Subject: [PATCH 05/63] Delete domains/*.akhil.is-cool.dev.json --- domains/*.akhil.is-cool.dev.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 domains/*.akhil.is-cool.dev.json diff --git a/domains/*.akhil.is-cool.dev.json b/domains/*.akhil.is-cool.dev.json deleted file mode 100644 index 9969379b..00000000 --- a/domains/*.akhil.is-cool.dev.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "domain": "is-cool.dev", - "subdomain": "*.akhil", - - "owner": { - "email": "codingicpc@gmail.com" - }, - - "record": { - "A": ["73.118.11.31"] - }, - - "proxied": false -} From f422484c6d5d34fdc1ad2a19dab062adcdc742cf Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 16:58:07 -0500 Subject: [PATCH 06/63] chore: fixing invalid json --- domains/srimaruthiricemill.localplayer.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/srimaruthiricemill.localplayer.dev.json b/domains/srimaruthiricemill.localplayer.dev.json index c6b31576..4af62ccd 100644 --- a/domains/srimaruthiricemill.localplayer.dev.json +++ b/domains/srimaruthiricemill.localplayer.dev.json @@ -9,7 +9,7 @@ }, "record": { - "AAA": ["100.81.221.118"] + "A": ["100.81.221.118"] }, "proxied": false From 167ba09b7fc71d9873a9a2e1898fff34855511c0 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:11:04 -0500 Subject: [PATCH 07/63] chore: fixing broken records --- domains/*.app.sctech.localplayer.dev.json | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 domains/*.app.sctech.localplayer.dev.json diff --git a/domains/*.app.sctech.localplayer.dev.json b/domains/*.app.sctech.localplayer.dev.json deleted file mode 100644 index 9c7576b4..00000000 --- a/domains/*.app.sctech.localplayer.dev.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "description": "sctech's apps", - "domain": "localplayer.dev", - "subdomain": "*.app.sctech", - "owner": { - "repo": "https://github.com/sctech-tr/website", - "email": "gamerselimiko@gmail.com" - }, - "record": { - "A": [ - "75.2.60.5" - ] - }, - "proxied": false -} From 80d67a012d72849cc1ca78877058df9799b82955 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:12:01 -0500 Subject: [PATCH 08/63] chore: fixing invalid json --- domains/soisyb.is-cool.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/soisyb.is-cool.dev.json b/domains/soisyb.is-cool.dev.json index 0588d0bf..afbd1d13 100644 --- a/domains/soisyb.is-cool.dev.json +++ b/domains/soisyb.is-cool.dev.json @@ -3,7 +3,7 @@ "subdomain": "soisyb", "owner": { - "email": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM" + "OWL": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM" }, "record": { From 4ca643737e4f213e1bcbf38232ce2f24dd1a280a Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:12:51 -0500 Subject: [PATCH 09/63] chore: fixing invalid json --- domains/srimaruthiricemill.localplayer.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/srimaruthiricemill.localplayer.dev.json diff --git a/domains/srimaruthiricemill.localplayer.dev.json b/domains/srimaruthiricemill.localplayer.dev.json deleted file mode 100644 index 4af62ccd..00000000 --- a/domains/srimaruthiricemill.localplayer.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Rice Mill System for developing the day to day activities for monitoring and managing the resources", - - "domain": "localplayer.dev", - "subdomain": "srimaruthiricemill", - - "owner": { - "email": "support@srimaruthiricemill.com" - }, - - "record": { - "A": ["100.81.221.118"] - }, - - "proxied": false -} From 8fa12d40992d48a9d0386af09ebc901c308731c6 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:16:42 -0500 Subject: [PATCH 10/63] chore: removing invalid records --- domains/*.devhat.localplayer.dev.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 domains/*.devhat.localplayer.dev.json diff --git a/domains/*.devhat.localplayer.dev.json b/domains/*.devhat.localplayer.dev.json deleted file mode 100644 index 4f31b1a6..00000000 --- a/domains/*.devhat.localplayer.dev.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "domain": "localplayer.dev", - "subdomain": "*.devhat", - - "owner": { - "email": "subramaniarun.sj59@gmail.com" - }, - - "record": { - "TXT": ["zoho-verification=zb65903823.zmverify.zoho.in"] - }, - - "proxied": false -} From fa5c53ec4ec86772e26bda1165b5df58affe9b10 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:17:40 -0500 Subject: [PATCH 11/63] chore: deleting invalid records --- domains/*.imrbk123abc.is-cool.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/*.imrbk123abc.is-cool.dev.json diff --git a/domains/*.imrbk123abc.is-cool.dev.json b/domains/*.imrbk123abc.is-cool.dev.json deleted file mode 100644 index 1306bbe1..00000000 --- a/domains/*.imrbk123abc.is-cool.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": ":D site", - - "domain": "is-cool.dev", - "subdomain": "*.imrbk123abc", - - "owner": { - "repo": "https://github.com/wadwdwd/register1/", - "email": "support@ohiominecraft.line.pm" - }, - - "record": { - "CNAME": "heyayyu.github.io" - }, - - "proxied": false -} From c363cd69a7d1e508d8f98ad6859d05b8a1a353c4 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:18:38 -0500 Subject: [PATCH 12/63] chore: delete domain breaking validation --- domains/*.indreshp.is-cool.dev.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 domains/*.indreshp.is-cool.dev.json diff --git a/domains/*.indreshp.is-cool.dev.json b/domains/*.indreshp.is-cool.dev.json deleted file mode 100644 index bb6a599f..00000000 --- a/domains/*.indreshp.is-cool.dev.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "domain": "is-cool.dev", - "subdomain": "*.indreshp", - - "owner": { - "email": "indreshp135@gmail.com" - }, - - "record": { - "A": ["144.24.138.210"] - }, - - "proxied": false -} From bbfca9d8e6450c8ae044acefb64d6c59cb87c71a Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:19:13 -0500 Subject: [PATCH 13/63] chore: delete domain breaking validation --- domains/*.jvgbet.is-cool.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/*.jvgbet.is-cool.dev.json diff --git a/domains/*.jvgbet.is-cool.dev.json b/domains/*.jvgbet.is-cool.dev.json deleted file mode 100644 index 2d8b07c0..00000000 --- a/domains/*.jvgbet.is-cool.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "School project that will allow people to participate in the events.", - - "domain": "is-cool.dev", - "subdomain": "jvgbet", - - "owner": { - "email": "gamekonts@gmail.com" - }, - - "record": { - "A": ["195.201.160.55"] - }, - - "proxied": false -} From 4d0775b70cfa8376b2a84b936926cb1fd3ec0893 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:20:03 -0500 Subject: [PATCH 14/63] chore: delete domain breaking validation --- domains/*.leo.localplayer.dev.json | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 domains/*.leo.localplayer.dev.json diff --git a/domains/*.leo.localplayer.dev.json b/domains/*.leo.localplayer.dev.json deleted file mode 100644 index e5179231..00000000 --- a/domains/*.leo.localplayer.dev.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "description": "creating subdomain to accessing multiple services. eg. nginx proxy manager, adguard domain setup,", - "domain": "localplayer.dev", - "subdomain": "*.leo", - - "owner": { - "repo": "https://github.com/lenadlm/register", - "email": "leo@leo101.aleeas.com" - }, - - "record": { - "A": ["34.1.221.94"] - }, - "proxied": false -} From 24ed39b7cba0af9bae3dc0af821eb1c8589469b1 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:20:36 -0500 Subject: [PATCH 15/63] Delete domains/*.lsmithx2.localplayer.dev.json --- domains/*.lsmithx2.localplayer.dev.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 domains/*.lsmithx2.localplayer.dev.json diff --git a/domains/*.lsmithx2.localplayer.dev.json b/domains/*.lsmithx2.localplayer.dev.json deleted file mode 100644 index 81e3a57b..00000000 --- a/domains/*.lsmithx2.localplayer.dev.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "domain": "localplayer.dev", - "subdomain": "*.lsmithx2", - - "owner": { - "email": "lsmithx2@gmail.com" - }, - - "record": { - "A": ["109.169.71.157"] - }, - - "proxied": false -} From 3eef01cf96610a0cb7bd8fbc3e6768d420445a7f Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:21:21 -0500 Subject: [PATCH 16/63] Delete domains/*.mithilesh.is-cool.dev.json --- domains/*.mithilesh.is-cool.dev.json | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 domains/*.mithilesh.is-cool.dev.json diff --git a/domains/*.mithilesh.is-cool.dev.json b/domains/*.mithilesh.is-cool.dev.json deleted file mode 100644 index b0dd80c1..00000000 --- a/domains/*.mithilesh.is-cool.dev.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "description": "IP finder Website for VPS ", - "domain": "is-cool.dev", - "subdomain": "*.mithilesh", - "owner": { - "repo": "https://github.com/kingsmen732/Ip-Lookup", - "email": "mitumithilesh2@gmail.com" - }, - "record": { - "A": ["76.76.21.21"] - }, - "proxied": true -} From 338931e808987f748f9544beea8932264c6dfb2b Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:21:55 -0500 Subject: [PATCH 17/63] Delete domains/*.rafat.is-cool.dev.json --- domains/*.rafat.is-cool.dev.json | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 domains/*.rafat.is-cool.dev.json diff --git a/domains/*.rafat.is-cool.dev.json b/domains/*.rafat.is-cool.dev.json deleted file mode 100644 index d1e74149..00000000 --- a/domains/*.rafat.is-cool.dev.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "description": "My remote domain. Subdomain wildcards are used for accessing multiple SaaS application.", - "domain": "is-cool.dev", - "subdomain": "*.rafat", - "owner": { - "email": "rafathasankhan@gmail.com" - }, - "record": { - "A": ["8.222.170.53"] - }, - "proxied": false -} From 718f79e19e50dd9a3002858d8ea8a035177440fa Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:22:21 -0500 Subject: [PATCH 18/63] Delete domains/*.shaurika.is-cool.dev.json --- domains/*.shaurika.is-cool.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/*.shaurika.is-cool.dev.json diff --git a/domains/*.shaurika.is-cool.dev.json b/domains/*.shaurika.is-cool.dev.json deleted file mode 100644 index 5c63b851..00000000 --- a/domains/*.shaurika.is-cool.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "I'll be using the domain for some upcoming projects of mine which includes some ai stuff, and the wildcard for some of the hosting stuff this domain is hosted in a aws (ap-south-1)", - - "domain": "is-cool.dev", - "subdomain": "*.shaurika", - - "owner": { - "email": "shauika.fx@gmail.com" - }, - - "record": { - "A": ["13.126.95.149"] - }, - - "proxied": false -} From 5ed83b761fe76105adef0fea972fe86bfe000864 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:22:53 -0500 Subject: [PATCH 19/63] Delete domains/*.system3.is-cool.dev.json --- domains/*.system3.is-cool.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/*.system3.is-cool.dev.json diff --git a/domains/*.system3.is-cool.dev.json b/domains/*.system3.is-cool.dev.json deleted file mode 100644 index 40faad3f..00000000 --- a/domains/*.system3.is-cool.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Personal Self Hosted Apps and Public Website.", - - "domain": "is-cool.dev", - "subdomain": "*.system3", - - "owner": { - "email": "kazi.hossain@outlook.com" - }, - - "record": { - "A": ["72.189.239.56"] - }, - - "proxied": false -} From 4d986cdf5cca919d751cd9ff38e1bb3aefef7a66 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:23:27 -0500 Subject: [PATCH 20/63] Delete domains/*.thedevteam.is-cool.dev.json --- domains/*.thedevteam.is-cool.dev.json | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 domains/*.thedevteam.is-cool.dev.json diff --git a/domains/*.thedevteam.is-cool.dev.json b/domains/*.thedevteam.is-cool.dev.json deleted file mode 100644 index ebadbb0a..00000000 --- a/domains/*.thedevteam.is-cool.dev.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "description": "An domain for the organization, the dev team. It is wildcard for all of their projects.", - - "domain": "is-cool.dev", - "subdomain": "*.thedevteam", - - "owner": { - "repo": "https://github.com/tdevteam", - "email": "TheDevTeam@protonmail.com" - }, - - "record": { - "A": ["185.199.108.153", -"185.199.109.153", -"185.199.110.153", -"185.199.111.153"], - "AAAA": ["2606:50c0:8000::153", -"2606:50c0:8001::153", -"2606:50c0:8002::153", -"2606:50c0:8003::153"] - }, - - "proxied": false -} From 826a728c2bb6a0ffd2225c7ecffc9ea0b992f8ff Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:23:54 -0500 Subject: [PATCH 21/63] Delete domains/*.trist-tran.is-cool.dev.json --- domains/*.trist-tran.is-cool.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/*.trist-tran.is-cool.dev.json diff --git a/domains/*.trist-tran.is-cool.dev.json b/domains/*.trist-tran.is-cool.dev.json deleted file mode 100644 index fc64efda..00000000 --- a/domains/*.trist-tran.is-cool.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Learning deploy code to VPS", - - "domain": "is-cool.dev", - "subdomain": "*.trist-tran", - - "owner": { - "email": "tmtzminhtri@gmail.com" - }, - - "record": { - "A": ["157.245.128.111"] - }, - - "proxied": false -} From dd6be91a0811e46923d896f847032db6bfe8bb95 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:24:25 -0500 Subject: [PATCH 22/63] Delete domains/*.xzonix.is-cool.dev.json --- domains/*.xzonix.is-cool.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/*.xzonix.is-cool.dev.json diff --git a/domains/*.xzonix.is-cool.dev.json b/domains/*.xzonix.is-cool.dev.json deleted file mode 100644 index 19169499..00000000 --- a/domains/*.xzonix.is-cool.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "A self-bio ", - - "domain": "is-cool.dev", - "subdomain": "*.xzonix", - - "owner": { - "repo": "https://github.com/xzonix/Register.", - "email": "xz1@dr.com" - }, - - "record": { - "CNAME": "xzonix.github.io" - }, - "proxied": false -} From 2069fa383b4c263a604bc52985ed153c6e5e400a Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:27:09 -0500 Subject: [PATCH 23/63] Update soisyearbook.is-cool.dev.json --- domains/soisyearbook.is-cool.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/soisyearbook.is-cool.dev.json b/domains/soisyearbook.is-cool.dev.json index 7a27382d..67556744 100644 --- a/domains/soisyearbook.is-cool.dev.json +++ b/domains/soisyearbook.is-cool.dev.json @@ -3,7 +3,7 @@ "subdomain": "soisyearbook", "owner": { - "email": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM" + "OWL": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM" }, "record": { From ea1519592d4cd67ea91e5259566a2d73ba1a08f6 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:33:58 -0500 Subject: [PATCH 24/63] fix!: improper validation --- tests/domains.test.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index dfccdcf3..4d817683 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -15,10 +15,10 @@ t("Nested subdomains should not exist without a parent subdomain", (t) => { const subdomain = file.replace(/\.json$/, ""); - if (subdomain.split(".").length > 1) { - // Get parent domain by removing the last part (subdomain) from the full subdomain + if (subdomain.split(".").length > 2) { + // Get parent domain by removing the leftmost part const parentSubdomain = subdomain.split(".").slice(1).join("."); - + // Ensure the parent subdomain exists t.true( files.includes(`${parentSubdomain}.json`), @@ -40,16 +40,21 @@ t("Nested subdomains should not exist if the parent subdomain has NS records", ( const subdomain = file.replace(/\.json$/, ""); - if (subdomain.split(".").length > 1) { - // Get parent domain by removing the last part (subdomain) from the full subdomain + if (subdomain.split(".").length > 2) { + // Get parent domain by removing the leftmost part const parentSubdomain = subdomain.split(".").slice(1).join("."); - const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`); // Check if the parent file exists before attempting to read it if (fs.existsSync(parentFilePath)) { const parentDomain = fs.readJsonSync(parentFilePath); - t.is(parentDomain.record.NS, undefined, `${file}: Parent subdomain has NS records`); + + // Check if the parent has NS records + t.is( + parentDomain.record.NS, + undefined, + `${file}: Parent subdomain ${parentSubdomain} has NS records` + ); } else { t.fail(`${parentSubdomain}.json file does not exist`); } @@ -58,3 +63,4 @@ t("Nested subdomains should not exist if the parent subdomain has NS records", ( t.pass(); }); + From 6649c27f219329b5095e6acf2253d15b5204c751 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:44:46 -0500 Subject: [PATCH 25/63] Update domains.test.js --- tests/domains.test.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 4d817683..0fa7a47f 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -5,6 +5,14 @@ const path = require("path"); const domainsPath = path.resolve("domains"); const files = fs.readdirSync(domainsPath); +/** + * Helper function to determine if a subdomain is a root domain. + * A root domain is assumed to be exactly two parts (e.g., "is-cool.dev"). + */ +function isRootDomain(domain) { + return domain.split(".").length === 2; +} + t("Nested subdomains should not exist without a parent subdomain", (t) => { files.forEach((file) => { // Skip directories and process only .json files @@ -19,6 +27,11 @@ t("Nested subdomains should not exist without a parent subdomain", (t) => { // Get parent domain by removing the leftmost part const parentSubdomain = subdomain.split(".").slice(1).join("."); + // Skip check if the parent subdomain is a root domain + if (isRootDomain(parentSubdomain)) { + return; + } + // Ensure the parent subdomain exists t.true( files.includes(`${parentSubdomain}.json`), @@ -45,6 +58,11 @@ t("Nested subdomains should not exist if the parent subdomain has NS records", ( const parentSubdomain = subdomain.split(".").slice(1).join("."); const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`); + // Skip check if the parent subdomain is a root domain + if (isRootDomain(parentSubdomain)) { + return; + } + // Check if the parent file exists before attempting to read it if (fs.existsSync(parentFilePath)) { const parentDomain = fs.readJsonSync(parentFilePath); @@ -63,4 +81,3 @@ t("Nested subdomains should not exist if the parent subdomain has NS records", ( t.pass(); }); - From 1c16431d83c42db4dd9c4ab5c5ccdce479bf3549 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:45:36 -0500 Subject: [PATCH 26/63] Delete domains/_discord.kuba.is-cool.dev.json --- domains/_discord.kuba.is-cool.dev.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 domains/_discord.kuba.is-cool.dev.json diff --git a/domains/_discord.kuba.is-cool.dev.json b/domains/_discord.kuba.is-cool.dev.json deleted file mode 100644 index 91046af9..00000000 --- a/domains/_discord.kuba.is-cool.dev.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "domain": "is-cool.dev", - "subdomain": "_discord.kuba", - - "owner": { - "email": "pojg77g1@kbb.anonaddy.me" - }, - - "record": { - "TXT": ["dh=d1e32b265bbdaff2d41ffb2ab88b1f72b03ac45b"] - }, - - "proxied": false -} From 4bcb0c10df554a7b4ab40cb754d4b70621e95132 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:48:14 -0500 Subject: [PATCH 27/63] Delete domains/_gh-openprofileproject-o.*.openprofile.is-cool.dev.json --- ...rofileproject-o.*.openprofile.is-cool.dev.json | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 domains/_gh-openprofileproject-o.*.openprofile.is-cool.dev.json diff --git a/domains/_gh-openprofileproject-o.*.openprofile.is-cool.dev.json b/domains/_gh-openprofileproject-o.*.openprofile.is-cool.dev.json deleted file mode 100644 index 9c6886e7..00000000 --- a/domains/_gh-openprofileproject-o.*.openprofile.is-cool.dev.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "domain": "is-cool.dev", - "subdomain": "_gh-openprofileproject-o.*.openprofile", - - "owner": { - "repo": "https://github.com/openprofileproject/openprofileproject", - "email": "gamerselimiko@gmail.com" - }, - - "record": { - "TXT": ["457162e38b"] - }, - - "proxied": false -} From 0edee5ce1420db8635b847d5162400c700b7e519 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:48:22 -0500 Subject: [PATCH 28/63] Delete domains/_gh-openprofileproject-o.openprofile.is-cool.dev.json --- ...rofileproject-o.openprofile.is-cool.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_gh-openprofileproject-o.openprofile.is-cool.dev.json diff --git a/domains/_gh-openprofileproject-o.openprofile.is-cool.dev.json b/domains/_gh-openprofileproject-o.openprofile.is-cool.dev.json deleted file mode 100644 index 9d933eba..00000000 --- a/domains/_gh-openprofileproject-o.openprofile.is-cool.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "github verification", - - "domain": "is-cool.dev", - "subdomain": "_gh-openprofileproject-o.openprofile", - - "owner": { - "repo": "https://github.com/openprofileproject", - "email": "us@openprofile.is-cool.dev" - }, - - "record": { - "TXT": ["8a7b386784"] - }, - - "proxied": false -} From 14640c8644bd6a1e9dfd3733533629593a074bd9 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:49:09 -0500 Subject: [PATCH 29/63] Delete domains/_github-pages-challenge-aryaejoumalai.aryaejoumalai.is-a-fullstack.dev.json --- ...umalai.aryaejoumalai.is-a-fullstack.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-aryaejoumalai.aryaejoumalai.is-a-fullstack.dev.json diff --git a/domains/_github-pages-challenge-aryaejoumalai.aryaejoumalai.is-a-fullstack.dev.json b/domains/_github-pages-challenge-aryaejoumalai.aryaejoumalai.is-a-fullstack.dev.json deleted file mode 100644 index f5e08824..00000000 --- a/domains/_github-pages-challenge-aryaejoumalai.aryaejoumalai.is-a-fullstack.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "GitHub Pages Verification aryaejoumalai", - - "domain": "is-a-fullstack.dev", - "subdomain": "_github-pages-challenge-AryaEjoumalai.aryaejoumalai", - - "owner": { - "repo": "https://github.com/AryaEjoumalai/portfolio", - "email": "aryaejoumalai@gmail.com" - }, - - "record": { - "TXT": ["41503457cf04f54c4a06a300513bd6"] - }, - - "proxied": false -} From 616045c9d8733ec498c504ba82f7853e1814705e Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:49:52 -0500 Subject: [PATCH 30/63] Delete domains/_github-pages-challenge-arzejames.wacky.is-not-a.dev.json --- ...-challenge-arzejames.wacky.is-not-a.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-arzejames.wacky.is-not-a.dev.json diff --git a/domains/_github-pages-challenge-arzejames.wacky.is-not-a.dev.json b/domains/_github-pages-challenge-arzejames.wacky.is-not-a.dev.json deleted file mode 100644 index 18e5e604..00000000 --- a/domains/_github-pages-challenge-arzejames.wacky.is-not-a.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "A website for a developer's profile", - - "domain": "is-not-a.dev", - "subdomain": "_github-pages-challenge-Arzejames.wacky", - - "owner": { - "repo": "https://github.com/Arzejames/WackyDevWebsite", - "email": "turtles127855@gmail.com" - }, - - "record": { - "TXT": ["5d4c72dcb4816fc1ff642af38784a2"] - }, - - "proxied": false -} From 58c9398b8c52949166868f75ce8b5015f11b1541 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:50:26 -0500 Subject: [PATCH 31/63] Delete domains/_github-pages-challenge-axviii3.axviii3.is-cool.dev.json --- ...s-challenge-axviii3.axviii3.is-cool.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-axviii3.axviii3.is-cool.dev.json diff --git a/domains/_github-pages-challenge-axviii3.axviii3.is-cool.dev.json b/domains/_github-pages-challenge-axviii3.axviii3.is-cool.dev.json deleted file mode 100644 index 1a0b3f5f..00000000 --- a/domains/_github-pages-challenge-axviii3.axviii3.is-cool.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "For verifying my domain with github pages", - - "domain": "is-cool.dev", - "subdomain": "_github-pages-challenge-axviii3.axviii3", - - "owner": { - "repo": "https://github.com/AXVIII3/AXVIII3", - "email": "axviii3.yt@gmail.com" - }, - - "record": { - "TXT": ["3fa04e63a79eec99f8e37691d660e8"] - }, - - "proxied": false -} From eeef53f0de8a3ed0d5d1cd87e10039086d0d79a9 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:51:00 -0500 Subject: [PATCH 32/63] Delete domains/_github-pages-challenge-bhavesh-acquaintsoft.bhavesh-acquaintsoft.is-local.org.json --- ...tsoft.bhavesh-acquaintsoft.is-local.org.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-bhavesh-acquaintsoft.bhavesh-acquaintsoft.is-local.org.json diff --git a/domains/_github-pages-challenge-bhavesh-acquaintsoft.bhavesh-acquaintsoft.is-local.org.json b/domains/_github-pages-challenge-bhavesh-acquaintsoft.bhavesh-acquaintsoft.is-local.org.json deleted file mode 100644 index ab2e5eed..00000000 --- a/domains/_github-pages-challenge-bhavesh-acquaintsoft.bhavesh-acquaintsoft.is-local.org.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "Developer Profile", - - "domain": "is-local.org", - "subdomain": "_github-pages-challenge-bhavesh-acquaintsoft.bhavesh-acquaintsoft", - - "owner": { - "repo": "https://github.com/bhavesh-acquaintsoft/bhavesh-acquaintsoft.github.io", - "email": "bhavesh.kagathara@acquaintsofttech.com" - }, - - "record": { - "TXT": ["249109ee3609049a56a9a828e4c50f"] - }, - - "proxied": false -} From 041a7952512ef6a57aeff134b9b9a5564c578f3e Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:52:08 -0500 Subject: [PATCH 33/63] chore: testing --- tests/domains.test.js | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 0fa7a47f..9d592f4f 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -14,6 +14,8 @@ function isRootDomain(domain) { } t("Nested subdomains should not exist without a parent subdomain", (t) => { + const issues = []; + files.forEach((file) => { // Skip directories and process only .json files const filePath = path.join(domainsPath, file); @@ -26,24 +28,26 @@ t("Nested subdomains should not exist without a parent subdomain", (t) => { if (subdomain.split(".").length > 2) { // Get parent domain by removing the leftmost part const parentSubdomain = subdomain.split(".").slice(1).join("."); - + // Skip check if the parent subdomain is a root domain if (isRootDomain(parentSubdomain)) { return; } - // Ensure the parent subdomain exists - t.true( - files.includes(`${parentSubdomain}.json`), - `${file}: Parent subdomain ${parentSubdomain}.json does not exist` - ); + // Check if the parent subdomain exists + if (!files.includes(`${parentSubdomain}.json`)) { + issues.push(`${file}: Parent subdomain ${parentSubdomain}.json does not exist`); + } } }); - t.pass(); + // Report all issues at once + t.deepEqual(issues, [], `Found issues:\n${issues.join("\n")}`); }); t("Nested subdomains should not exist if the parent subdomain has NS records", (t) => { + const issues = []; + files.forEach((file) => { // Skip directories and process only .json files const filePath = path.join(domainsPath, file); @@ -68,16 +72,15 @@ t("Nested subdomains should not exist if the parent subdomain has NS records", ( const parentDomain = fs.readJsonSync(parentFilePath); // Check if the parent has NS records - t.is( - parentDomain.record.NS, - undefined, - `${file}: Parent subdomain ${parentSubdomain} has NS records` - ); + if (parentDomain.record.NS !== undefined) { + issues.push(`${file}: Parent subdomain ${parentSubdomain} has NS records`); + } } else { - t.fail(`${parentSubdomain}.json file does not exist`); + issues.push(`${file}: Parent subdomain ${parentSubdomain}.json file does not exist`); } } }); - t.pass(); + // Report all issues at once + t.deepEqual(issues, [], `Found issues:\n${issues.join("\n")}`); }); From fcbdcd4ca5eb16c0f7657cf9299139d9404c02d4 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:59:21 -0500 Subject: [PATCH 34/63] Delete domains/_github-pages-challenge-clay990.suraj.is-cool.dev.json --- ...pages-challenge-clay990.suraj.is-cool.dev.json | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 domains/_github-pages-challenge-clay990.suraj.is-cool.dev.json diff --git a/domains/_github-pages-challenge-clay990.suraj.is-cool.dev.json b/domains/_github-pages-challenge-clay990.suraj.is-cool.dev.json deleted file mode 100644 index c5d411a2..00000000 --- a/domains/_github-pages-challenge-clay990.suraj.is-cool.dev.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "description": "Portfolio project", - "domain": "is-cool.dev", - "subdomain": "_github-pages-challenge-clay990.suraj", - "owner": { - "repo": "https://github.com/Clay990/suraj", - "email": "asuraj991m@gmail.com" - }, - "record": { - "TXT": [ - "53a1f061ccd38386443e96e1948962" - ] - }, - "proxied": false -} From d423d0d836da6fa5b7abec360cd0ce15918db65e Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:59:35 -0500 Subject: [PATCH 35/63] Delete domains/_github-pages-challenge-homesteadrd.homesteadrdplaygroup.is-local.org.json --- ...eadrd.homesteadrdplaygroup.is-local.org.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-homesteadrd.homesteadrdplaygroup.is-local.org.json diff --git a/domains/_github-pages-challenge-homesteadrd.homesteadrdplaygroup.is-local.org.json b/domains/_github-pages-challenge-homesteadrd.homesteadrdplaygroup.is-local.org.json deleted file mode 100644 index 69f7fed4..00000000 --- a/domains/_github-pages-challenge-homesteadrd.homesteadrdplaygroup.is-local.org.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "Playgroup website", - - "domain": "is-local.org", - "subdomain": "_github-pages-challenge-homesteadrd.homesteadrdplaygroup", - - "owner": { - "repo": "https://github.com/homesteadrd/web", - "email": "homesteadrdplaygroup@gmail.com" - }, - - "record": { - "TXT": ["61fb25de94ffb44246bcda98b23911"] - }, - - "proxied": false -} From fb52d55e6d76f6b76fd3897a54a760ee010e569e Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:59:46 -0500 Subject: [PATCH 36/63] Delete domains/_github-pages-challenge-jinix6.crystalperson.is-cool.dev.json --- ...llenge-jinix6.crystalperson.is-cool.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-jinix6.crystalperson.is-cool.dev.json diff --git a/domains/_github-pages-challenge-jinix6.crystalperson.is-cool.dev.json b/domains/_github-pages-challenge-jinix6.crystalperson.is-cool.dev.json deleted file mode 100644 index aa8096fc..00000000 --- a/domains/_github-pages-challenge-jinix6.crystalperson.is-cool.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "GitHub Pages Verification vrahmanov", - - "domain": "is-cool.dev", - "subdomain": "_github-pages-challenge-jinix6.crystalperson", - - "owner": { - "repo": "https://github.com/jinix6/Craftland", - "email": "nanusahoo05@gmail.com" - }, - - "record": { - "TXT": ["50eb7583c6eeedf6f67806138d93bd"] - }, - - "proxied": false -} From 1dbc1eaa1b392378cf1d3ef73f0355361d519c4e Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:59:57 -0500 Subject: [PATCH 37/63] Delete domains/_github-pages-challenge-jinix6.crystalperson.is-local.org.json --- ...nge-jinix6.crystalperson.is-local.org.json | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 domains/_github-pages-challenge-jinix6.crystalperson.is-local.org.json diff --git a/domains/_github-pages-challenge-jinix6.crystalperson.is-local.org.json b/domains/_github-pages-challenge-jinix6.crystalperson.is-local.org.json deleted file mode 100644 index 4597b20f..00000000 --- a/domains/_github-pages-challenge-jinix6.crystalperson.is-local.org.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "description": "Verifying custom domain on Github", - - "domain": "is-local.org", - "subdomain": "_github-pages-challenge-jinix6.crystalperson", - - "owner": { - "repo": "https://github.com/jinix6/crystalperson.github.io", - "email": "nanusahoo05@gmail.com" - }, - - "record": { - "TXT": ["50eb7583c6eeedf6f67806138d93bd"] - }, - - "proxied": false -} - - From 02093f61813bc4a11d1692f6bc7dc04df6d851bc Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:00:05 -0500 Subject: [PATCH 38/63] Delete domains/_github-pages-challenge-narmis-e.narmis.is-cool.dev.json --- ...s-challenge-narmis-e.narmis.is-cool.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-narmis-e.narmis.is-cool.dev.json diff --git a/domains/_github-pages-challenge-narmis-e.narmis.is-cool.dev.json b/domains/_github-pages-challenge-narmis-e.narmis.is-cool.dev.json deleted file mode 100644 index d5854099..00000000 --- a/domains/_github-pages-challenge-narmis-e.narmis.is-cool.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "My portfolio hosted on GitHub Pages", - - "domain": "is-cool.dev", - "subdomain": "_github-pages-challenge-Narmis-E.narmis", - - "owner": { - "repo": "https://github.com/narmis-e/portfolio", - "email": "narmisecurb@gmail.com" - }, - - "record": { - "TXT": ["4213f5eb992ffe0d720bc237736a46"] - }, - - "proxied": false -} From fae42af3f82b42e12e56340afbd4cd963f041e61 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:00:15 -0500 Subject: [PATCH 39/63] Delete domains/_github-pages-challenge-openorganizationname.climatehealthei.is-local.org.json --- ...zationname.climatehealthei.is-local.org.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-openorganizationname.climatehealthei.is-local.org.json diff --git a/domains/_github-pages-challenge-openorganizationname.climatehealthei.is-local.org.json b/domains/_github-pages-challenge-openorganizationname.climatehealthei.is-local.org.json deleted file mode 100644 index ade7a288..00000000 --- a/domains/_github-pages-challenge-openorganizationname.climatehealthei.is-local.org.json +++ /dev/null @@ -1,17 +0,0 @@ -{ -"description": "For verifying my domain with github pages", - -"domain": "is-local.org", -"subdomain": "_github-pages-challenge-OpenOrganizationName.climatehealthei", - -"owner": { -"repo": "https://github.com/FizzWizZleDazzle/climatehealthei.github.io", -"email": "arturmisiurev@gmail.com" -}, - -"record": { -"TXT": ["b038216c5480f640390bfcc7168d92"] -}, - -"proxied": false -} From ea4c0023179e4dc80fc6141634b1ee23f8acb7f0 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:00:25 -0500 Subject: [PATCH 40/63] Delete domains/_github-pages-challenge-py660.python660.is-loca.org.json --- ...pages-challenge-py660.python660.is-loca.org.json | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 domains/_github-pages-challenge-py660.python660.is-loca.org.json diff --git a/domains/_github-pages-challenge-py660.python660.is-loca.org.json b/domains/_github-pages-challenge-py660.python660.is-loca.org.json deleted file mode 100644 index b8438ab7..00000000 --- a/domains/_github-pages-challenge-py660.python660.is-loca.org.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "domain": "is-local.org", - "subdomain": "_github-pages-challenge-py660.python660", - - "owner": { - "repo": "https://github.com/py660/py660", - "email": "py660@irc.cluster.ws" - }, - - "record": { - "TXT": ["9f7bbf7a0a097f15d0b5c76076d9dd"] - } -} From 456fa7ef3ecf40cda4f6872e4d05bec1375a1ca3 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:00:33 -0500 Subject: [PATCH 41/63] Delete domains/_github-pages-challenge-tdevteam.thedevteam.is-cool.dev.json --- ...allenge-tdevteam.thedevteam.is-cool.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-tdevteam.thedevteam.is-cool.dev.json diff --git a/domains/_github-pages-challenge-tdevteam.thedevteam.is-cool.dev.json b/domains/_github-pages-challenge-tdevteam.thedevteam.is-cool.dev.json deleted file mode 100644 index 130eb0fc..00000000 --- a/domains/_github-pages-challenge-tdevteam.thedevteam.is-cool.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "To verify this domain for our github org", - - "domain": "is-cool.dev", - "subdomain": "_github-pages-challenge-TDevTeam.thedevteam", - - "owner": { - "repo": "https://github.com/tdevteam", - "email": "TheDevTeam@protonmail.com" - }, - - "record": { - "TXT": ["5e99f2d515b93bdffe4b1e960e1a85"] - }, - - "proxied": false -} From a34649e0e61e0e74844389cd745b2b33affd49bb Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:00:41 -0500 Subject: [PATCH 42/63] Delete domains/_github-pages-challenge-vijay2249.coachbeardjr.localplayer.dev.json --- ...e-vijay2249.coachbeardjr.localplayer.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/_github-pages-challenge-vijay2249.coachbeardjr.localplayer.dev.json diff --git a/domains/_github-pages-challenge-vijay2249.coachbeardjr.localplayer.dev.json b/domains/_github-pages-challenge-vijay2249.coachbeardjr.localplayer.dev.json deleted file mode 100644 index aef7772a..00000000 --- a/domains/_github-pages-challenge-vijay2249.coachbeardjr.localplayer.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Personal Website", - - "domain": "localplayer.dev", - "subdomain": "_github-pages-challenge-vijay2249.coachbeardjr", - - "owner": { - "email": "coachbeardjr.vvm8p@slmail.me" - }, - - "record": { - "TXT": ["dc0ebd8500ded55870bc8806c70dd5"] - }, - - "proxied": false -} From 7969019fb2d24492092be0921bdb9795d6c06d67 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:00:50 -0500 Subject: [PATCH 43/63] Delete domains/_github-pages-challenge-yesnielx.yesnielx.is-cool.dev.json --- ...hallenge-yesnielx.yesnielx.is-cool.dev.json | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 domains/_github-pages-challenge-yesnielx.yesnielx.is-cool.dev.json diff --git a/domains/_github-pages-challenge-yesnielx.yesnielx.is-cool.dev.json b/domains/_github-pages-challenge-yesnielx.yesnielx.is-cool.dev.json deleted file mode 100644 index 44206e7b..00000000 --- a/domains/_github-pages-challenge-yesnielx.yesnielx.is-cool.dev.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "description": "GitHub Pages Verification", - - "domain": "is-cool.dev", - "subdomain": "_github-pages-challenge-YesnielX.yesnielx", - - "owner": { - "repo": "https://github.com/YesnielX/yesnielx.github.io", - "email": "yesnielviv2@gmail.com" - }, - - "record": { - "TXT": ["f5fe834daad27fc92c5d3a4b2e0135"] - }, - - "proxied": false - } - \ No newline at end of file From 3f4fbc35bd5b93c440b91a4f3ab5fdf2a1ce5e70 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:01:32 -0500 Subject: [PATCH 44/63] Delete domains/devil._domainkey.host.mycodelab.is-cool.dev.json --- ...il._domainkey.host.mycodelab.is-cool.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/devil._domainkey.host.mycodelab.is-cool.dev.json diff --git a/domains/devil._domainkey.host.mycodelab.is-cool.dev.json b/domains/devil._domainkey.host.mycodelab.is-cool.dev.json deleted file mode 100644 index 53773c50..00000000 --- a/domains/devil._domainkey.host.mycodelab.is-cool.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "mycodelab mail, this is for temporary so i can transfer my mails to another account", - - "domain": "is-cool.dev", - "subdomain": "devil._domainkey.host.mycodelab", - - "owner": { - "repo": "https://github.com/ShadowGaming100/register" - }, - - "record": { - "TXT": ["v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDRR//eLOhnpXyeRihLl1AnM/Ysj4cFG6873HAzsL4ubge6mmzmwGtb9xWQiY79kAfpQBv+CFnirFvMdZQldcJDMCbcrbeEBMaNxOi5udf1lmLH/6M1VMnu6Y2VCCoBSP7XhHqOVWDkThi1ROFB6mKwZQkypo+fz7tE6xwgVkJBCQIDAQAB;"] - }, - - "proxied": false -} From c488ab9872b692788b7b5cccf9c286fde4bfcf9a Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:02:16 -0500 Subject: [PATCH 45/63] Delete domains/amplify.is-a.fullstack.dev.json --- domains/amplify.is-a.fullstack.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/amplify.is-a.fullstack.dev.json diff --git a/domains/amplify.is-a.fullstack.dev.json b/domains/amplify.is-a.fullstack.dev.json deleted file mode 100644 index dfcf101c..00000000 --- a/domains/amplify.is-a.fullstack.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Amplify's Fullstack Domain", - "domain": "is-a-fullstack.dev", - "subdomain": "amplify", - - "owner": { - "repo": "https://github.com/not-amplify/free-domain/", - "email": "not.amplify@night-x.com" - }, - - "record": { - "NS" : ["summer.ns.cloudflare.com", "terry.ns.cloudflare.com" ] - }, - - "proxied": false -} From 707fcda5240a2156530070e3659b2c0fde722d88 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:02:32 -0500 Subject: [PATCH 46/63] Delete domains/potpry.is-cool.dev..json --- domains/potpry.is-cool.dev..json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/potpry.is-cool.dev..json diff --git a/domains/potpry.is-cool.dev..json b/domains/potpry.is-cool.dev..json deleted file mode 100644 index b89fcbba..00000000 --- a/domains/potpry.is-cool.dev..json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "Personal Cloud Study", - - "domain": "is-cool.dev", - "subdomain": "potpry", - - "owner": { - "email": "potprytest+open-domains@gmail.com" - }, - - "record": { - "A": ["158.247.216.53"] - }, - - "proxied": false -} From c31da7a6129b5146cb1c68f772dda1f99453fe6b Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:02:47 -0500 Subject: [PATCH 47/63] Delete domains/privacy.isdev.localplayer.dev.json --- domains/privacy.isdev.localplayer.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/privacy.isdev.localplayer.dev.json diff --git a/domains/privacy.isdev.localplayer.dev.json b/domains/privacy.isdev.localplayer.dev.json deleted file mode 100644 index 7b136ed5..00000000 --- a/domains/privacy.isdev.localplayer.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "website", - - "domain": "localplayer.dev", - "subdomain": "privacy.isdev", - - "owner": { - "repo": "https://github.com/is-a-dev/register", - "email": "andrew@win11react.com" - }, - - "record": { - "MX": ["mx.sendgrid.net"] - }, - - "proxied": false -} From 068d74d3d2ff171db4465233a19bcd2794a0b699 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:04:11 -0500 Subject: [PATCH 48/63] chore: formatting --- ...evil._domainkey.host.mycodelab.is-cool.dev.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 domains/devil._domainkey.host.mycodelab.is-cool.dev.json diff --git a/domains/devil._domainkey.host.mycodelab.is-cool.dev.json b/domains/devil._domainkey.host.mycodelab.is-cool.dev.json new file mode 100644 index 00000000..94a130d7 --- /dev/null +++ b/domains/devil._domainkey.host.mycodelab.is-cool.dev.json @@ -0,0 +1,14 @@ +{ + "description": "mycodelab mail, this is for temporary so i can transfer my mails to another account", + "domain": "is-cool.dev", + "subdomain": "devil._domainkey.host.mycodelab", + "owner": { + "repo": "https://github.com/ShadowGaming100/register" + }, + "record": { + "TXT": [ + "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDRR//eLOhnpXyeRihLl1AnM/Ysj4cFG6873HAzsL4ubge6mmzmwGtb9xWQiY79kAfpQBv+CFnirFvMdZQldcJDMCbcrbeEBMaNxOi5udf1lmLH/6M1VMnu6Y2VCCoBSP7XhHqOVWDkThi1ROFB6mKwZQkypo+fz7tE6xwgVkJBCQIDAQAB;" + ] + }, + "proxied": false +} From 0e15c9479b6b2e9701f92563f4314fcf2cbd8cd0 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:08:58 -0500 Subject: [PATCH 49/63] chore: testing --- tests/domains.test.js | 79 ++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 9d592f4f..69fd3a4f 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -5,16 +5,17 @@ const path = require("path"); const domainsPath = path.resolve("domains"); const files = fs.readdirSync(domainsPath); -/** - * Helper function to determine if a subdomain is a root domain. - * A root domain is assumed to be exactly two parts (e.g., "is-cool.dev"). - */ -function isRootDomain(domain) { - return domain.split(".").length === 2; -} +// Extract valid root domains dynamically from the files +const validRootDomains = Array.from( + new Set( + files + .map((file) => file.split(".").slice(-2).join(".")) + .filter((domain) => domain.endsWith(".dev") || domain.endsWith(".org")) + ) +); -t("Nested subdomains should not exist without a parent subdomain", (t) => { - const issues = []; +t("Nested subdomains should not exist without a valid parent domain", (t) => { + const invalidFiles = []; files.forEach((file) => { // Skip directories and process only .json files @@ -25,28 +26,27 @@ t("Nested subdomains should not exist without a parent subdomain", (t) => { const subdomain = file.replace(/\.json$/, ""); - if (subdomain.split(".").length > 2) { - // Get parent domain by removing the leftmost part - const parentSubdomain = subdomain.split(".").slice(1).join("."); + // Find the first-level parent subdomain + const parentSubdomainParts = subdomain.split("."); + const rootDomain = parentSubdomainParts.slice(-2).join("."); + const firstLevelParent = `${parentSubdomainParts.slice(-3, -2)[0]}.${rootDomain}`; - // Skip check if the parent subdomain is a root domain - if (isRootDomain(parentSubdomain)) { - return; - } - - // Check if the parent subdomain exists - if (!files.includes(`${parentSubdomain}.json`)) { - issues.push(`${file}: Parent subdomain ${parentSubdomain}.json does not exist`); - } + if ( + parentSubdomainParts.length > 2 && // Must have at least one subdomain + validRootDomains.includes(rootDomain) && // Must belong to a valid root domain + !files.includes(`${firstLevelParent}.json`) // Parent must exist + ) { + invalidFiles.push(`${file}: Parent domain ${firstLevelParent}.json does not exist`); } }); - // Report all issues at once - t.deepEqual(issues, [], `Found issues:\n${issues.join("\n")}`); + // Fail the test if there are invalid files + invalidFiles.forEach((message) => t.fail(message)); + t.pass(); }); -t("Nested subdomains should not exist if the parent subdomain has NS records", (t) => { - const issues = []; +t("Nested subdomains should not exist if the parent domain has NS records", (t) => { + const invalidFiles = []; files.forEach((file) => { // Skip directories and process only .json files @@ -57,30 +57,25 @@ t("Nested subdomains should not exist if the parent subdomain has NS records", ( const subdomain = file.replace(/\.json$/, ""); - if (subdomain.split(".").length > 2) { - // Get parent domain by removing the leftmost part - const parentSubdomain = subdomain.split(".").slice(1).join("."); - const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`); + // Find the first-level parent subdomain + const parentSubdomainParts = subdomain.split("."); + const rootDomain = parentSubdomainParts.slice(-2).join("."); + const firstLevelParent = `${parentSubdomainParts.slice(-3, -2)[0]}.${rootDomain}`; + const parentFilePath = path.join(domainsPath, `${firstLevelParent}.json`); - // Skip check if the parent subdomain is a root domain - if (isRootDomain(parentSubdomain)) { - return; - } - - // Check if the parent file exists before attempting to read it + if (parentSubdomainParts.length > 2 && validRootDomains.includes(rootDomain)) { if (fs.existsSync(parentFilePath)) { const parentDomain = fs.readJsonSync(parentFilePath); - - // Check if the parent has NS records - if (parentDomain.record.NS !== undefined) { - issues.push(`${file}: Parent subdomain ${parentSubdomain} has NS records`); + if (parentDomain.record?.NS) { + invalidFiles.push(`${file}: Parent domain ${firstLevelParent} has NS records`); } } else { - issues.push(`${file}: Parent subdomain ${parentSubdomain}.json file does not exist`); + invalidFiles.push(`${file}: Parent domain ${firstLevelParent}.json does not exist`); } } }); - // Report all issues at once - t.deepEqual(issues, [], `Found issues:\n${issues.join("\n")}`); + // Fail the test if there are invalid files + invalidFiles.forEach((message) => t.fail(message)); + t.pass(); }); From f6fe834af0a152eb24c9a3dfe63a609a99e4f391 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:13:08 -0500 Subject: [PATCH 50/63] Update domains.test.js --- tests/domains.test.js | 67 +++++++++++++++---------------------------- 1 file changed, 23 insertions(+), 44 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 69fd3a4f..abb88004 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -1,22 +1,4 @@ -const t = require("ava"); -const fs = require("fs-extra"); -const path = require("path"); - -const domainsPath = path.resolve("domains"); -const files = fs.readdirSync(domainsPath); - -// Extract valid root domains dynamically from the files -const validRootDomains = Array.from( - new Set( - files - .map((file) => file.split(".").slice(-2).join(".")) - .filter((domain) => domain.endsWith(".dev") || domain.endsWith(".org")) - ) -); - t("Nested subdomains should not exist without a valid parent domain", (t) => { - const invalidFiles = []; - files.forEach((file) => { // Skip directories and process only .json files const filePath = path.join(domainsPath, file); @@ -26,28 +8,23 @@ t("Nested subdomains should not exist without a valid parent domain", (t) => { const subdomain = file.replace(/\.json$/, ""); - // Find the first-level parent subdomain - const parentSubdomainParts = subdomain.split("."); - const rootDomain = parentSubdomainParts.slice(-2).join("."); - const firstLevelParent = `${parentSubdomainParts.slice(-3, -2)[0]}.${rootDomain}`; + // Skip first-level subdomains (i.e., subdomains with only one part like "599.is-cool.dev") + if (subdomain.split(".").length > 2) { + // Get the parent domain (remove the first part of the subdomain) + const parentSubdomain = subdomain.split(".").slice(1).join("."); - if ( - parentSubdomainParts.length > 2 && // Must have at least one subdomain - validRootDomains.includes(rootDomain) && // Must belong to a valid root domain - !files.includes(`${firstLevelParent}.json`) // Parent must exist - ) { - invalidFiles.push(`${file}: Parent domain ${firstLevelParent}.json does not exist`); + // Ensure the parent subdomain exists + t.true( + files.includes(`${parentSubdomain}.json`), + `${file}: Parent domain ${parentSubdomain}.json does not exist` + ); } }); - // Fail the test if there are invalid files - invalidFiles.forEach((message) => t.fail(message)); t.pass(); }); t("Nested subdomains should not exist if the parent domain has NS records", (t) => { - const invalidFiles = []; - files.forEach((file) => { // Skip directories and process only .json files const filePath = path.join(domainsPath, file); @@ -57,25 +34,27 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) const subdomain = file.replace(/\.json$/, ""); - // Find the first-level parent subdomain - const parentSubdomainParts = subdomain.split("."); - const rootDomain = parentSubdomainParts.slice(-2).join("."); - const firstLevelParent = `${parentSubdomainParts.slice(-3, -2)[0]}.${rootDomain}`; - const parentFilePath = path.join(domainsPath, `${firstLevelParent}.json`); + // Skip first-level subdomains (i.e., subdomains with only one part like "599.is-cool.dev") + if (subdomain.split(".").length > 2) { + // Get the parent domain (remove the first part of the subdomain) + const parentSubdomain = subdomain.split(".").slice(1).join("."); + const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`); - if (parentSubdomainParts.length > 2 && validRootDomains.includes(rootDomain)) { + // Check if the parent file exists before attempting to read it if (fs.existsSync(parentFilePath)) { const parentDomain = fs.readJsonSync(parentFilePath); - if (parentDomain.record?.NS) { - invalidFiles.push(`${file}: Parent domain ${firstLevelParent} has NS records`); - } + + // Check if the parent has NS records + t.is( + parentDomain.record.NS, + undefined, + `${file}: Parent domain ${parentSubdomain} has NS records` + ); } else { - invalidFiles.push(`${file}: Parent domain ${firstLevelParent}.json does not exist`); + t.fail(`${parentSubdomain}.json file does not exist`); } } }); - // Fail the test if there are invalid files - invalidFiles.forEach((message) => t.fail(message)); t.pass(); }); From fcd618090c9a58415d90d0bd9739f68f38032848 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:17:00 -0500 Subject: [PATCH 51/63] Update domains.test.js --- tests/domains.test.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index abb88004..03e2ccba 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -1,3 +1,18 @@ +const t = require("ava"); +const fs = require("fs-extra"); +const path = require("path"); + +const domainsPath = path.resolve("domains"); +const files = fs.readdirSync(domainsPath); + +// Extract valid root domains dynamically from the files, ignoring specific TLDs +const validRootDomains = Array.from( + new Set( + files + .map((file) => file.split(".").slice(-2).join(".")) + ) +); + t("Nested subdomains should not exist without a valid parent domain", (t) => { files.forEach((file) => { // Skip directories and process only .json files @@ -13,7 +28,7 @@ t("Nested subdomains should not exist without a valid parent domain", (t) => { // Get the parent domain (remove the first part of the subdomain) const parentSubdomain = subdomain.split(".").slice(1).join("."); - // Ensure the parent subdomain exists + // Ensure the parent subdomain exists in the list of files t.true( files.includes(`${parentSubdomain}.json`), `${file}: Parent domain ${parentSubdomain}.json does not exist` @@ -34,7 +49,7 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) const subdomain = file.replace(/\.json$/, ""); - // Skip first-level subdomains (i.e., subdomains with only one part like "599.is-cool.dev") + // Skip first-level subdomains (i.e., subdomains with only one part like "dibster.is-cool.dev") if (subdomain.split(".").length > 2) { // Get the parent domain (remove the first part of the subdomain) const parentSubdomain = subdomain.split(".").slice(1).join("."); From 50362f39f1a09701c6ee834ca64eefd71385cee8 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:20:56 -0500 Subject: [PATCH 52/63] chore: debug --- tests/domains.test.js | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 03e2ccba..cbcc4218 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -5,12 +5,9 @@ const path = require("path"); const domainsPath = path.resolve("domains"); const files = fs.readdirSync(domainsPath); -// Extract valid root domains dynamically from the files, ignoring specific TLDs -const validRootDomains = Array.from( - new Set( - files - .map((file) => file.split(".").slice(-2).join(".")) - ) +// Extract all valid domains from the files +const validDomains = new Set( + files.map((file) => file.replace(/\.json$/, "")) // Remove .json extension for easier comparison ); t("Nested subdomains should not exist without a valid parent domain", (t) => { @@ -23,15 +20,15 @@ t("Nested subdomains should not exist without a valid parent domain", (t) => { const subdomain = file.replace(/\.json$/, ""); - // Skip first-level subdomains (i.e., subdomains with only one part like "599.is-cool.dev") + // Check if the domain is a nested subdomain (i.e., has more than 2 parts) if (subdomain.split(".").length > 2) { - // Get the parent domain (remove the first part of the subdomain) - const parentSubdomain = subdomain.split(".").slice(1).join("."); + // Get the "root" domain by extracting only the last two parts + const rootDomain = subdomain.split(".").slice(-2).join("."); - // Ensure the parent subdomain exists in the list of files + // Ensure the root domain exists t.true( - files.includes(`${parentSubdomain}.json`), - `${file}: Parent domain ${parentSubdomain}.json does not exist` + validDomains.has(rootDomain), + `${file}: Parent domain ${rootDomain}.json does not exist` ); } }); @@ -49,11 +46,11 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) const subdomain = file.replace(/\.json$/, ""); - // Skip first-level subdomains (i.e., subdomains with only one part like "dibster.is-cool.dev") + // Check if the domain is a nested subdomain (i.e., has more than 2 parts) if (subdomain.split(".").length > 2) { - // Get the parent domain (remove the first part of the subdomain) - const parentSubdomain = subdomain.split(".").slice(1).join("."); - const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`); + // Get the "root" domain by extracting only the last two parts + const rootDomain = subdomain.split(".").slice(-2).join("."); + const parentFilePath = path.join(domainsPath, `${rootDomain}.json`); // Check if the parent file exists before attempting to read it if (fs.existsSync(parentFilePath)) { @@ -63,10 +60,10 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) t.is( parentDomain.record.NS, undefined, - `${file}: Parent domain ${parentSubdomain} has NS records` + `${file}: Parent domain ${rootDomain} has NS records` ); } else { - t.fail(`${parentSubdomain}.json file does not exist`); + t.fail(`${rootDomain}.json file does not exist`); } } }); From 8bd9a6f1d6321f3ff2bd87d4065b2182b629be7d Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:24:09 -0500 Subject: [PATCH 53/63] Update domains.test.js --- tests/domains.test.js | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index cbcc4218..4ae7344d 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -5,9 +5,12 @@ const path = require("path"); const domainsPath = path.resolve("domains"); const files = fs.readdirSync(domainsPath); -// Extract all valid domains from the files -const validDomains = new Set( - files.map((file) => file.replace(/\.json$/, "")) // Remove .json extension for easier comparison +// Extract all subdomains from files (without considering specific TLDs) +const validRootDomains = Array.from( + new Set( + files + .map((file) => file.split(".").slice(-2).join(".")) + ) ); t("Nested subdomains should not exist without a valid parent domain", (t) => { @@ -20,15 +23,16 @@ t("Nested subdomains should not exist without a valid parent domain", (t) => { const subdomain = file.replace(/\.json$/, ""); - // Check if the domain is a nested subdomain (i.e., has more than 2 parts) + // Skip first-level subdomains (e.g., "banana.is-cool.dev") + // First-level subdomains have no immediate parent to check if (subdomain.split(".").length > 2) { - // Get the "root" domain by extracting only the last two parts - const rootDomain = subdomain.split(".").slice(-2).join("."); + // Get the immediate parent domain (remove the first subdomain part) + const parentSubdomain = subdomain.split(".").slice(1).join("."); - // Ensure the root domain exists + // Ensure the immediate parent subdomain exists in the list of files t.true( - validDomains.has(rootDomain), - `${file}: Parent domain ${rootDomain}.json does not exist` + files.includes(`${parentSubdomain}.json`), + `${file}: Parent domain ${parentSubdomain}.json does not exist` ); } }); @@ -46,11 +50,12 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) const subdomain = file.replace(/\.json$/, ""); - // Check if the domain is a nested subdomain (i.e., has more than 2 parts) + // Skip first-level subdomains (e.g., "banana.is-cool.dev") + // First-level subdomains have no immediate parent to check if (subdomain.split(".").length > 2) { - // Get the "root" domain by extracting only the last two parts - const rootDomain = subdomain.split(".").slice(-2).join("."); - const parentFilePath = path.join(domainsPath, `${rootDomain}.json`); + // Get the immediate parent domain (remove the first subdomain part) + const parentSubdomain = subdomain.split(".").slice(1).join("."); + const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`); // Check if the parent file exists before attempting to read it if (fs.existsSync(parentFilePath)) { @@ -60,10 +65,10 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) t.is( parentDomain.record.NS, undefined, - `${file}: Parent domain ${rootDomain} has NS records` + `${file}: Parent domain ${parentSubdomain} has NS records` ); } else { - t.fail(`${rootDomain}.json file does not exist`); + t.fail(`${parentSubdomain}.json file does not exist`); } } }); From 75559bc848e37538325d401642df602f3521bcc0 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:39:22 -0500 Subject: [PATCH 54/63] Update domains.test.js --- tests/domains.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 4ae7344d..81c16d6e 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -9,7 +9,7 @@ const files = fs.readdirSync(domainsPath); const validRootDomains = Array.from( new Set( files - .map((file) => file.split(".").slice(-2).join(".")) + .map((file) => file.split(".").slice(-3).join(".")) ) ); From 1ccad6b2337da597563f42d4e115109a1407fb8e Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:40:39 -0500 Subject: [PATCH 55/63] Update domains.test.js --- tests/domains.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 81c16d6e..a97520d3 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -25,7 +25,7 @@ t("Nested subdomains should not exist without a valid parent domain", (t) => { // Skip first-level subdomains (e.g., "banana.is-cool.dev") // First-level subdomains have no immediate parent to check - if (subdomain.split(".").length > 2) { + if (subdomain.split(".").length > 3) { // Get the immediate parent domain (remove the first subdomain part) const parentSubdomain = subdomain.split(".").slice(1).join("."); @@ -52,7 +52,7 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) // Skip first-level subdomains (e.g., "banana.is-cool.dev") // First-level subdomains have no immediate parent to check - if (subdomain.split(".").length > 2) { + if (subdomain.split(".").length > 3) { // Get the immediate parent domain (remove the first subdomain part) const parentSubdomain = subdomain.split(".").slice(1).join("."); const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`); From 24c890127a9c670adfd3a9abe5f410e4c5b73bee Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:46:06 -0500 Subject: [PATCH 56/63] chore: testing --- tests/domains.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index a97520d3..980f9d87 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -53,8 +53,8 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) // Skip first-level subdomains (e.g., "banana.is-cool.dev") // First-level subdomains have no immediate parent to check if (subdomain.split(".").length > 3) { - // Get the immediate parent domain (remove the first subdomain part) - const parentSubdomain = subdomain.split(".").slice(1).join("."); + // Get the immediate parent domain, by getting the last 3 parts. + const parentSubdomain = subdomain.split(".").slice(-3); const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`); // Check if the parent file exists before attempting to read it From ee5c8cace360b8d932148b0c603a93b6a4faf7ba Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:47:46 -0500 Subject: [PATCH 57/63] Update domains.test.js --- tests/domains.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index 980f9d87..cfb019e3 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -27,7 +27,7 @@ t("Nested subdomains should not exist without a valid parent domain", (t) => { // First-level subdomains have no immediate parent to check if (subdomain.split(".").length > 3) { // Get the immediate parent domain (remove the first subdomain part) - const parentSubdomain = subdomain.split(".").slice(1).join("."); + const parentSubdomain = subdomain.split(".").slice(-3).join("."); // Ensure the immediate parent subdomain exists in the list of files t.true( @@ -54,7 +54,7 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) // First-level subdomains have no immediate parent to check if (subdomain.split(".").length > 3) { // Get the immediate parent domain, by getting the last 3 parts. - const parentSubdomain = subdomain.split(".").slice(-3); + const parentSubdomain = subdomain.split(".").slice(-3).join("."); const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`); // Check if the parent file exists before attempting to read it From 8f44becb40a7990fe8707c09b3a6a2c3f5403cdd Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:50:09 -0500 Subject: [PATCH 58/63] Delete domains/_github-pages-challenge-hosykynam0619ch2008-umego.lophoctinhthuong.is-local.org.json --- ...008-umego.lophoctinhthuong.is-local.org.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/_github-pages-challenge-hosykynam0619ch2008-umego.lophoctinhthuong.is-local.org.json diff --git a/domains/_github-pages-challenge-hosykynam0619ch2008-umego.lophoctinhthuong.is-local.org.json b/domains/_github-pages-challenge-hosykynam0619ch2008-umego.lophoctinhthuong.is-local.org.json deleted file mode 100644 index 5f7f2c78..00000000 --- a/domains/_github-pages-challenge-hosykynam0619ch2008-umego.lophoctinhthuong.is-local.org.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "Welcome to Lớp học tình thương! (Class of Love in Vietnamese). This is a project by student to introduce our class, where love and learning are always prioritized, mostly fun. This portfolio includes an introduction to the class, learning and extracurricular activities, and an introduction video. The project's goal is to share joy, connect students preserve memorable moments of school life. We always welcome contributions from everyone. If you have ideas or want to add content, please open an Issue or Pull Request.", - - "domain": "is-local.org", - "subdomain": "_github-pages-challenge-hosykynam0619ch2008-umego.lophoctinhthuong", - - "owner": { - "repo": "https://github.com/hosykynam0619ch2008-umego/lophoctinhthuong", - "email": "nam@belugadanganphoga.com" - }, - - "record": { - "TXT": ["a1e85d841d86fc4b2f499b96a25626"] - }, - - "proxied": false -} From 9e596e57c1a2c3becac65904ede1b530e557896e Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:54:40 -0500 Subject: [PATCH 59/63] Update domains.test.js --- tests/domains.test.js | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/tests/domains.test.js b/tests/domains.test.js index cfb019e3..5b41ce54 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -5,13 +5,9 @@ const path = require("path"); const domainsPath = path.resolve("domains"); const files = fs.readdirSync(domainsPath); -// Extract all subdomains from files (without considering specific TLDs) -const validRootDomains = Array.from( - new Set( - files - .map((file) => file.split(".").slice(-3).join(".")) - ) -); +// Arrays to store issues for each test +const noParentIssues = []; +const nsRecordIssues = []; t("Nested subdomains should not exist without a valid parent domain", (t) => { files.forEach((file) => { @@ -30,14 +26,17 @@ t("Nested subdomains should not exist without a valid parent domain", (t) => { const parentSubdomain = subdomain.split(".").slice(-3).join("."); // Ensure the immediate parent subdomain exists in the list of files - t.true( - files.includes(`${parentSubdomain}.json`), - `${file}: Parent domain ${parentSubdomain}.json does not exist` - ); + if (!files.includes(`${parentSubdomain}.json`)) { + noParentIssues.push(`${file}: Parent domain ${parentSubdomain}.json does not exist`); + } } }); - t.pass(); + if (noParentIssues.length > 0) { + t.fail("Issues found (no parent domain):\n" + noParentIssues.join("\n")); + } else { + t.pass(); + } }); t("Nested subdomains should not exist if the parent domain has NS records", (t) => { @@ -62,16 +61,18 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t) const parentDomain = fs.readJsonSync(parentFilePath); // Check if the parent has NS records - t.is( - parentDomain.record.NS, - undefined, - `${file}: Parent domain ${parentSubdomain} has NS records` - ); + if (parentDomain.record.NS !== undefined) { + nsRecordIssues.push(`${file}: Parent domain ${parentSubdomain} has NS records`); + } } else { - t.fail(`${parentSubdomain}.json file does not exist`); + nsRecordIssues.push(`${parentSubdomain}.json file does not exist`); } } }); - t.pass(); + if (nsRecordIssues.length > 0) { + t.fail("Issues found (NS records):\n" + nsRecordIssues.join("\n")); + } else { + t.pass(); + } }); From e4da03b344ef1e80792fd2c4f77e0bd6ef88d31c Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:56:29 -0500 Subject: [PATCH 60/63] Delete domains/_github-pages-challenge-turbomaster95.deva.is-cool.dev.json --- ...challenge-turbomaster95.deva.is-cool.dev.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 domains/_github-pages-challenge-turbomaster95.deva.is-cool.dev.json diff --git a/domains/_github-pages-challenge-turbomaster95.deva.is-cool.dev.json b/domains/_github-pages-challenge-turbomaster95.deva.is-cool.dev.json deleted file mode 100644 index 70eb04f2..00000000 --- a/domains/_github-pages-challenge-turbomaster95.deva.is-cool.dev.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "description": "GitHub Pages Verification", - - "domain": "is-cool.dev", - "subdomain": "_github-pages-challenge-turbomaster95.deva", - - "owner": { - "email": "devamidhun.3c.kmbvm@gmail.com" - }, - - "record": { - "TXT": ["759008a19efb434a5fc65df616b307"] - }, - - "proxied": false -} From 0a29fa2b2cce1ed54f848c6f4def0dcfea6d8cf9 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:56:42 -0500 Subject: [PATCH 61/63] Delete domains/mail.deva.is-cool.dev.json --- domains/mail.deva.is-cool.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/mail.deva.is-cool.dev.json diff --git a/domains/mail.deva.is-cool.dev.json b/domains/mail.deva.is-cool.dev.json deleted file mode 100644 index e0ed9a61..00000000 --- a/domains/mail.deva.is-cool.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "Mail URL", - - "domain": "is-cool.dev", - "subdomain": "mail.deva", - - "owner": { - "email": "devamidhun.3c.kmbvm@gmail.com" - }, - - "record": { - "MX": ["mx1.improvmx.com", "mx2.improvmx.com"], - "TXT": ["v=spf1 include:spf.improvmx.com ~all"] - }, - - "proxied": false -} From 04ffa8ac1516e1802c4f89f54b1dd3a3a1d49854 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:56:51 -0500 Subject: [PATCH 62/63] Delete domains/play.deva.is-cool.dev.json --- domains/play.deva.is-cool.dev.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 domains/play.deva.is-cool.dev.json diff --git a/domains/play.deva.is-cool.dev.json b/domains/play.deva.is-cool.dev.json deleted file mode 100644 index 64c4eda0..00000000 --- a/domains/play.deva.is-cool.dev.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "description": "Minecraft server", - - "domain": "is-cool.dev", - "subdomain": "play.deva", - - "owner": { - "email": "devamidhun.3c.kmbvm@gmail.com" - }, - - "record": { - "NS": ["galileo.aternos.org", "columbus.aternos.org"] - } -} From f077dc3c38b0ff02df5d7f21cc54af2d49c22225 Mon Sep 17 00:00:00 2001 From: DIBSTER <76603072+DEV-DIBSTER@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:57:01 -0500 Subject: [PATCH 63/63] Delete domains/tts.deva.is-cool.dev.json --- domains/tts.deva.is-cool.dev.json | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 domains/tts.deva.is-cool.dev.json diff --git a/domains/tts.deva.is-cool.dev.json b/domains/tts.deva.is-cool.dev.json deleted file mode 100644 index 85c1aca6..00000000 --- a/domains/tts.deva.is-cool.dev.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "description": "ttsapi", - - "domain": "is-cool.dev", - "subdomain": "tts.deva", - - "owner": { - "repo": "https://github.com/turbomaster95/turbomaster95.github.io", - "email": "devamidhun.3c.kmbvm@gmail.com" - }, - - "record": { - "CNAME": "48c10554-32ea-4bc5-98f8-5f062b511ad1.id.repl.co" - }, - - "proxied": false -}