diff --git a/domains/_acme-challenge.devspace.reaver.json b/domains/_acme-challenge.devspace.reaver.json new file mode 100644 index 0000000000..9804d83977 --- /dev/null +++ b/domains/_acme-challenge.devspace.reaver.json @@ -0,0 +1,10 @@ +{ + "repo": "https://github.com/playreaver/reaverlauncher", + "owner": { + "username": "playreaver", + "email": "reaver.entertainment@hotmail.com" + }, + "records": { + "TXT": ["devAt0AD4jmuvgyIf20QXnrdhtzyiv_exuTiH-FMyTU"] + } +} diff --git a/domains/_acme-challenge.www.devspace.reaver.json b/domains/_acme-challenge.www.devspace.reaver.json new file mode 100644 index 0000000000..0c42dd9a15 --- /dev/null +++ b/domains/_acme-challenge.www.devspace.reaver.json @@ -0,0 +1,10 @@ +{ + "repo": "https://github.com/playreaver/reaverlauncher", + "owner": { + "username": "playreaver", + "email": "reaver.entertainment@hotmail.com" + }, + "records": { + "TXT": ["Wa6egx_VprU9Ixruf2otVNZYAeevRaWur_kXC2dX2dE"] + } +} diff --git a/domains/_discord.liamsmets.json b/domains/_discord.liamsmets.json deleted file mode 100644 index fe796ae004..0000000000 --- a/domains/_discord.liamsmets.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "smetsliam", - "email": "liam@nextcodetwo.be" - }, - "records": { - "TXT": "dh=bb5e70dd01fe1e586790fb9bc75a60e1bf6c7d34" - } -} diff --git a/domains/_github-pages-challenge-tumaro.tumin.json b/domains/_github-pages-challenge-tumaro.tumin.json new file mode 100644 index 0000000000..5053da2739 --- /dev/null +++ b/domains/_github-pages-challenge-tumaro.tumin.json @@ -0,0 +1,11 @@ +{ + "owner": { + "username": "tumaro", + "email": "contact.tumins@gmail.com" + }, + "records": { + "TXT": "2429d96641449fe3efa3425ea9ee61" + } +} + + diff --git a/domains/_github-pages-challenge-ysnyuki2321.yuki.json b/domains/_github-pages-challenge-ysnyuki2321.yuki.json new file mode 100644 index 0000000000..7bde3c3415 --- /dev/null +++ b/domains/_github-pages-challenge-ysnyuki2321.yuki.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "ysnyuki2321", + "email": "ysnyuki2321@outlook.jp" + }, + "records": { + "TXT": "be315717c887ffb2572e670f992c15" + } +} diff --git a/domains/_vercel.fadhilgani.json b/domains/_vercel.fadhilgani.json new file mode 100644 index 0000000000..31859e9eaf --- /dev/null +++ b/domains/_vercel.fadhilgani.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "padiil", + "email": "fadhilgani2@gmail.com" + }, + "records": { + "TXT": "vc-domain-verify=fadhilgani.is-a.dev,351ccf051d76f5379b65" + } +} diff --git a/domains/_vercel.tannd.json b/domains/_vercel.tannd.json new file mode 100644 index 0000000000..9b3aae84cb --- /dev/null +++ b/domains/_vercel.tannd.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "ndt2804", + "email": "nduytan.uit.a3@gmail.com" + }, + "records": { + "TXT": "vc-domain-verify=tannd.is-a.dev,8022b8cd4ba8af216a2a" + } +} diff --git a/domains/_vercel.vishalmahto.json b/domains/_vercel.vishalmahto.json new file mode 100644 index 0000000000..22c344aee4 --- /dev/null +++ b/domains/_vercel.vishalmahto.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "vishalmahto0007", + "email": "vishalmahto0007@gmail.com" + }, + "records": { + "TXT": "vc-domain-verify=vishalmahto.is-a.dev,6ef3474f0e8e652ed121" + } +} diff --git a/domains/bismark.json b/domains/bismark.json new file mode 100644 index 0000000000..ecceee9ec3 --- /dev/null +++ b/domains/bismark.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "onebismark", + "email": "bismark@markmixstudios.com" + }, + "records": { + "CNAME": "onebismark.github.io" + } +} diff --git a/domains/emanuele.json b/domains/emanuele.json deleted file mode 100644 index a09df20ee8..0000000000 --- a/domains/emanuele.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "Manueloso", - "email": "paracetamolo2005@gmail.com" - }, - "records": { - "CNAME": "wandering-resonance-c9c9.regamanu2005.workers.dev" - } -} diff --git a/domains/fadhilgani.json b/domains/fadhilgani.json new file mode 100644 index 0000000000..cf14113fa9 --- /dev/null +++ b/domains/fadhilgani.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "padiil", + "email": "fadhilgani2@gmail.com" + }, + "records": { + "CNAME": "cname.vercel-dns.com" + } +} diff --git a/domains/gunah.json b/domains/gunah.json new file mode 100644 index 0000000000..11fe90da10 --- /dev/null +++ b/domains/gunah.json @@ -0,0 +1,11 @@ +{ + "description": "GunahD Personal website", + "repo": "https://github.com/GunahD/gunah", + "owner": { + "username": "GunahD", + "email": "gabewastaken03@gmail.com" + }, + "records": { + "CNAME": "gunahd.github.io" + } +} diff --git a/domains/harunabdullah.json b/domains/harunabdullah.json index e1335c3bc3..05b5c7f4a1 100644 --- a/domains/harunabdullah.json +++ b/domains/harunabdullah.json @@ -5,7 +5,12 @@ }, "records": { "CNAME": "portfolio-52h.pages.dev", - "TXT": "zoho-verification=zb02836572.zmverify.zoho.com" + "TXT": "zoho-verification=zb02836572.zmverify.zoho.com", + "MX": [ + { "target": "mx.zoho.com", "priority": 10 }, + { "target": "mx2.zoho.com", "priority": 20 }, + { "target": "mx3.zoho.com", "priority": 50 } + ] }, "proxied": true } diff --git a/domains/innocentdev.json b/domains/innocentdev.json deleted file mode 100644 index ee665c7f20..0000000000 --- a/domains/innocentdev.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "Innocent-dev-yt", - "email": "prateeksingh45454545@gmail.com" - }, - "records": { - "CNAME": "portfolio.innocentdevyt.workers.dev" - } -} diff --git a/domains/jshlyzxl.json b/domains/jshlyzxl.json deleted file mode 100644 index 3de695a769..0000000000 --- a/domains/jshlyzxl.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "cbbnbbc", - "discord": "1038746610076762112" - }, - "records": { - "CNAME": "hcchat.911748.workers.dev" - } -} diff --git a/domains/kriti.json b/domains/kriti.json new file mode 100644 index 0000000000..0e220d7cff --- /dev/null +++ b/domains/kriti.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "kritiup", + "email": "kritiu54@gmail.com" + }, + "records": { + "CNAME": "kritiup.github.io" + } +} \ No newline at end of file diff --git a/domains/lbplbp.json b/domains/lbplbp.json deleted file mode 100644 index c1568f2244..0000000000 --- a/domains/lbplbp.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "sjzsbgwb", - "email": "3022605585@qq.com" - }, - "records": { - "CNAME": "wiki.jejsjsjja.workers.dev" - } -} diff --git a/domains/liamsmets.json b/domains/liamsmets.json deleted file mode 100644 index 1c9b3029e5..0000000000 --- a/domains/liamsmets.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "smetsliam", - "email": "liam@nextcodetwo.be" - }, - "records": { - "CNAME": "liamsmets.nextcodetwo.workers.dev" - } -} diff --git a/domains/notansh.json b/domains/notansh.json new file mode 100644 index 0000000000..acc53bf7f5 --- /dev/null +++ b/domains/notansh.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "Garvaansh", + "email": "garvgupta2984@gmail.com" + }, + "records": { + "A": ["69.30.249.53"] + } +} diff --git a/domains/ntita.json b/domains/ntita.json new file mode 100644 index 0000000000..005fbb6ac6 --- /dev/null +++ b/domains/ntita.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "nganduntita1", + "email": "nganduntita@gmail.com" + }, + "records": { + "CNAME": "nganduntita1.github.io" + } +} diff --git a/domains/remorateam.json b/domains/remorateam.json new file mode 100644 index 0000000000..4b05ef8770 --- /dev/null +++ b/domains/remorateam.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "matisio3", + "email": "itsmatisio@outlook.fr" + }, + "records": { + "CNAME": "matisio3.github.io" + } +} diff --git a/domains/rizkykr.json b/domains/rizkykr.json deleted file mode 100644 index d45089b646..0000000000 --- a/domains/rizkykr.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "owner": { - "username": "rizkykr", - "email": "me@rizkykr.com" - }, - "description": "Personal Website for Personal Branding", - "records": { - "CNAME": "rizkykr-is-a-dev.rizkykr.workers.dev" - }, - "proxied": false -} diff --git a/domains/sunn4github.json b/domains/sunn4github.json deleted file mode 100644 index e6e08f7179..0000000000 --- a/domains/sunn4github.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "sunn4room", - "email": "sunn4room@163.com" - }, - "records": { - "CNAME": "ghproxy.sunn4room.workers.dev" - } -} diff --git a/domains/tannd.json b/domains/tannd.json index 2396b4ce93..5245dcfcdb 100644 --- a/domains/tannd.json +++ b/domains/tannd.json @@ -4,6 +4,6 @@ "email": "nduytan.uit.a3@gmail.com" }, "records": { - "CNAME": "portfolio-web-nextjs-iota.vercel.app" + "CNAME": "cname.vercel-dns.com" } } diff --git a/domains/www.devspace.reaver.json b/domains/www.devspace.reaver.json new file mode 100644 index 0000000000..6f904f3d6e --- /dev/null +++ b/domains/www.devspace.reaver.json @@ -0,0 +1,10 @@ +{ + "description": "Reaver.Entertainment", + "owner": { + "username": "playreaver", + "email": "reaver.entertainment@hotmail.com" + }, + "records": { + "URL": "https://devspace.reaver.is-a.dev/" + } +} diff --git a/tests/records.test.js b/tests/records.test.js index 2452c636ad..3d802451cf 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -88,6 +88,8 @@ function isValidHexadecimal(value) { return /^[0-9a-fA-F]+$/.test(value); } +const disallowedCNAMEs = require("../util/disallowed-cnames.json"); + function validateRecordValues(t, data, file) { const subdomain = file.replace(/\.json$/, ""); @@ -141,6 +143,14 @@ function validateRecordValues(t, data, file) { t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`); t.true(value !== `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`); t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`); + + for (const disallowed of disallowedCNAMEs) { + if (disallowed.startsWith(".")) { + t.false(value.endsWith(disallowed), `${file}: ${key} cannot end with ${disallowed}`); + } else { + t.false(value === disallowed, `${file}: ${key} cannot be ${disallowed}`); + } + } } else if (key === "URL") { t.true( value.startsWith("http://") || value.startsWith("https://"), diff --git a/util/disallowed-cnames.json b/util/disallowed-cnames.json new file mode 100644 index 0000000000..b56bfb4ca7 --- /dev/null +++ b/util/disallowed-cnames.json @@ -0,0 +1,4 @@ +[ + ".cfargotunnel.com", + ".workers.dev" +]