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 -} 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 -} 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 -} 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 -} 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 -} 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 -} 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 -} 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 -} 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 -} 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 -} 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 -} 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 -} 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 -} 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": { 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(); }); +