Merge branch 'main' into main

This commit is contained in:
DIBSTER authored and GitHub committed 2024-12-05 18:59:24 -05:00
commit 290330c5d6
47 files changed
+53 -694

No files matched your search

-14
View File
@@ -1,14 +0,0 @@
{
"domain": "is-cool.dev",
"subdomain": "*.akhil",
"owner": {
"email": "codingicpc@gmail.com"
},
"record": {
"A": ["73.118.11.31"]
},
"proxied": false
}
-15
View File
@@ -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
}
-14
View File
@@ -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
}
-17
View File
@@ -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
}
-14
View File
@@ -1,14 +0,0 @@
{
"domain": "is-cool.dev",
"subdomain": "*.indreshp",
"owner": {
"email": "indreshp135@gmail.com"
},
"record": {
"A": ["144.24.138.210"]
},
"proxied": false
}
-16
View File
@@ -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
}
-15
View File
@@ -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
}
-14
View File
@@ -1,14 +0,0 @@
{
"domain": "localplayer.dev",
"subdomain": "*.lsmithx2",
"owner": {
"email": "lsmithx2@gmail.com"
},
"record": {
"A": ["109.169.71.157"]
},
"proxied": false
}
-13
View File
@@ -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
}
-12
View File
@@ -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
}
-16
View File
@@ -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
}
-16
View File
@@ -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
}
-24
View File
@@ -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
}
-16
View File
@@ -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
}
-16
View File
@@ -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
}
-14
View File
@@ -1,14 +0,0 @@
{
"domain": "is-cool.dev",
"subdomain": "_discord.kuba",
"owner": {
"email": "pojg77g1@kbb.anonaddy.me"
},
"record": {
"TXT": ["dh=d1e32b265bbdaff2d41ffb2ab88b1f72b03ac45b"]
},
"proxied": false
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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"]
}
}
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
-16
View File
@@ -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
}
@@ -1,16 +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
"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
}
-17
View File
@@ -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
}
-14
View File
@@ -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"]
}
}
-16
View File
@@ -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
}
@@ -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
}
+1 -1
View File
@@ -3,7 +3,7 @@
"subdomain": "sdheeraj",
"owner": {
"email": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM"
"OWL": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM"
},
"record": {
+1 -1
View File
@@ -3,7 +3,7 @@
"subdomain": "soisyb",
"owner": {
"email": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM"
"OWL": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM"
},
"record": {
+1 -1
View File
@@ -3,7 +3,7 @@
"subdomain": "soisyearbook",
"owner": {
"email": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM"
"OWL": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM"
},
"record": {
@@ -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
}
-17
View File
@@ -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
}
+36 -18
View File
@@ -5,7 +5,11 @@ const path = require("path");
const domainsPath = path.resolve("domains");
const files = fs.readdirSync(domainsPath);
t("Nested subdomains should not exist without a parent subdomain", (t) => {
// 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) => {
// Skip directories and process only .json files
const filePath = path.join(domainsPath, file);
@@ -15,22 +19,27 @@ 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
const parentSubdomain = subdomain.split(".").slice(1).join(".");
// 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(-3).join(".");
// Ensure the parent subdomain exists
t.true(
files.includes(`${parentSubdomain}.json`),
`${file}: Parent subdomain ${parentSubdomain}.json does not exist`
);
// Ensure the immediate parent subdomain exists in the list of files
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 subdomain has NS records", (t) => {
t("Nested subdomains should not exist if the parent domain has NS records", (t) => {
files.forEach((file) => {
// Skip directories and process only .json files
const filePath = path.join(domainsPath, file);
@@ -40,21 +49,30 @@ 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
const parentSubdomain = subdomain.split(".").slice(1).join(".");
// 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, by getting the last 3 parts.
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
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
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();
}
});
+2 -1
View File
@@ -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`);