diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 07ba168b9..a4788b050 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -5,4 +5,4 @@
*.md @is-a-dev/maintainers
/LICENSE @phenax
-/dnsconfig.js @wdhdev @andrewstech
+/dnsconfig.js @wdhdev
diff --git a/README.md b/README.md
index 3088b23d5..98f1a6fff 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,6 @@
-
is-a.dev
diff --git a/dnsconfig.js b/dnsconfig.js
index 40faa0fcb..6ab771d97 100644
--- a/dnsconfig.js
+++ b/dnsconfig.js
@@ -1,9 +1,16 @@
+var domainName = "is-a.dev";
+var registrar = NewRegistrar("none");
+var dnsProvider = DnsProvider(NewDnsProvider("cloudflare"), 0);
+
function getDomainsList(filesPath) {
var result = [];
var files = glob.apply(null, [filesPath, true, ".json"]);
for (var i = 0; i < files.length; i++) {
- var name = files[i].split("/").pop().replace(/\.json$/, "");
+ var name = files[i]
+ .split("/")
+ .pop()
+ .replace(/\.json$/, "");
result.push({ name: name, data: require(files[i]) });
}
@@ -12,25 +19,29 @@ function getDomainsList(filesPath) {
}
var domains = getDomainsList("./domains");
-var commit = [];
+var records = [];
for (var subdomain in domains) {
var subdomainName = domains[subdomain].name;
- var fullSubdomain = subdomainName + ".is-a.dev";
+ var fullSubdomain = subdomainName + "." + domainName;
var domainData = domains[subdomain].data;
- var proxyState = domainData.proxied ? { cloudflare_proxy: "on" } : { cloudflare_proxy: "off" };
+ var proxyState = domainData.proxied ? CF_PROXY_ON : CF_PROXY_OFF;
// Handle A records
if (domainData.record.A) {
for (var a in domainData.record.A) {
- commit.push(A(subdomainName, IP(domainData.record.A[a]), proxyState));
+ records.push(
+ A(subdomainName, IP(domainData.record.A[a]), proxyState)
+ );
}
}
// Handle AAAA records
if (domainData.record.AAAA) {
for (var aaaa in domainData.record.AAAA) {
- commit.push(AAAA(subdomainName, domainData.record.AAAA[aaaa], proxyState));
+ records.push(
+ AAAA(subdomainName, domainData.record.AAAA[aaaa], proxyState)
+ );
}
}
@@ -38,7 +49,14 @@ for (var subdomain in domains) {
if (domainData.record.CAA) {
for (var caa in domainData.record.CAA) {
var caaRecord = domainData.record.CAA[caa];
- commit.push(CAA(subdomainName, caaRecord.flags, caaRecord.tag, caaRecord.value));
+ records.push(
+ CAA(
+ subdomainName,
+ caaRecord.flags,
+ caaRecord.tag,
+ caaRecord.value
+ )
+ );
}
}
@@ -46,28 +64,46 @@ for (var subdomain in domains) {
if (domainData.record.CNAME) {
// Allow CNAME record on root
if (subdomainName === "@") {
- commit.push(ALIAS(subdomainName, domainData.record.CNAME + ".", proxyState));
+ records.push(
+ ALIAS(subdomainName, domainData.record.CNAME + ".", proxyState)
+ );
} else {
- commit.push(CNAME(subdomainName, domainData.record.CNAME + ".", proxyState));
+ records.push(
+ CNAME(subdomainName, domainData.record.CNAME + ".", proxyState)
+ );
}
}
// Handle DS records
if (domainData.record.DS) {
- commit.push(DS(subdomainName, domainData.record.DS.key_tag, domainData.record.DS.algorithm, domainData.record.DS.digest_type, domainData.record.DS.digest));
+ records.push(
+ DS(
+ subdomainName,
+ domainData.record.DS.key_tag,
+ domainData.record.DS.algorithm,
+ domainData.record.DS.digest_type,
+ domainData.record.DS.digest
+ )
+ );
}
// Handle MX records
if (domainData.record.MX) {
for (var mx in domainData.record.MX) {
- commit.push(MX(subdomainName, 10 + parseInt(mx), domainData.record.MX[mx] + "."));
+ records.push(
+ MX(
+ subdomainName,
+ 10 + parseInt(mx),
+ domainData.record.MX[mx] + "."
+ )
+ );
}
}
// Handle NS records
if (domainData.record.NS) {
for (var ns in domainData.record.NS) {
- commit.push(NS(subdomainName, domainData.record.NS[ns] + "."));
+ records.push(NS(subdomainName, domainData.record.NS[ns] + "."));
}
}
@@ -75,7 +111,15 @@ for (var subdomain in domains) {
if (domainData.record.SRV) {
for (var srv in domainData.record.SRV) {
var srvRecord = domainData.record.SRV[srv];
- commit.push(SRV(subdomainName, srvRecord.priority, srvRecord.weight, srvRecord.port, srvRecord.target + "."));
+ records.push(
+ SRV(
+ subdomainName,
+ srvRecord.priority,
+ srvRecord.weight,
+ srvRecord.port,
+ srvRecord.target + "."
+ )
+ );
}
}
@@ -83,34 +127,37 @@ for (var subdomain in domains) {
if (domainData.record.TXT) {
if (Array.isArray(domainData.record.TXT)) {
for (var txt in domainData.record.TXT) {
- commit.push(TXT(subdomainName, domainData.record.TXT[txt]));
+ records.push(TXT(subdomainName, domainData.record.TXT[txt]));
}
} else {
- commit.push(TXT(subdomainName, domainData.record.TXT));
+ records.push(TXT(subdomainName, domainData.record.TXT));
}
}
// Handle URL records
if (domainData.record.URL) {
- commit.push(A(subdomainName, IP("192.0.2.1"), { cloudflare_proxy: "on" }));
+ records.push(A(subdomainName, IP("192.0.2.1"), CF_PROXY_ON));
}
// Handle reserved domains
if (domainData.reserved) {
- commit.push(TXT(subdomainName, "RESERVED"));
+ records.push(TXT(subdomainName, "RESERVED"));
}
}
-// Exceptions
-commit.push(IGNORE("@", "MX,TXT"));
-commit.push(IGNORE("\\*"));
-commit.push(IGNORE("_acme-challenge", "TXT"));
-commit.push(IGNORE("_autodiscover._tcp", "SRV"));
-commit.push(IGNORE("_dmarc", "TXT"));
-commit.push(IGNORE("autoconfig", "CNAME"));
-commit.push(IGNORE("autodiscover", "CNAME"));
-commit.push(IGNORE("dkim._domainkey", "TXT"));
-commit.push(IGNORE("ns[1-5]", "A,AAAA"));
+var options = {
+ no_ns: 'true'
+};
-// Commit all DNS records
-D("is-a.dev", NewRegistrar("none"), DnsProvider(NewDnsProvider("cloudflare")), commit);
+var ignored = [
+ IGNORE("@", "MX,TXT"),
+ IGNORE("\\*"),
+ IGNORE("_acme-challenge", "TXT"),
+ IGNORE("_autodiscover._tcp", "SRV"),
+ IGNORE("_dmarc", "TXT"),
+ IGNORE("autoconfig", "CNAME"),
+ IGNORE("autodiscover", "CNAME"),
+ IGNORE("dkim._domainkey", "TXT")
+];
+
+D(domainName, registrar, dnsProvider, options, ignored, records);
diff --git a/domains/_discord.ciao287.json b/domains/_discord.ciao287.json
new file mode 100644
index 000000000..2c0409191
--- /dev/null
+++ b/domains/_discord.ciao287.json
@@ -0,0 +1,9 @@
+{
+ "owner": {
+ "username": "Ciao287",
+ "discord": "687333016921440317"
+ },
+ "record": {
+ "TXT": "dh=ce277d8733f3951ace98e01de4cbf58ffca4b4c6"
+ }
+}
diff --git a/domains/_discord.tentomasne.json b/domains/_discord.tentomasne.json
new file mode 100644
index 000000000..82a4a11a5
--- /dev/null
+++ b/domains/_discord.tentomasne.json
@@ -0,0 +1,8 @@
+{
+ "owner": {
+ "username": "jasomtubratu"
+ },
+ "record": {
+ "TXT": ["dh=47fddb5e68440c61b93da59a8e57d91da546ae1e"]
+ }
+}
diff --git a/domains/_github-pages-challenge-thatqui.qui.json b/domains/_github-pages-challenge-quiww.qui.json
similarity index 60%
rename from domains/_github-pages-challenge-thatqui.qui.json
rename to domains/_github-pages-challenge-quiww.qui.json
index c84c45f43..32d93a106 100644
--- a/domains/_github-pages-challenge-thatqui.qui.json
+++ b/domains/_github-pages-challenge-quiww.qui.json
@@ -1,7 +1,7 @@
{
"owner": {
- "username": "thatqui",
- "email": "_qui@tuta.io"
+ "username": "quiww",
+ "mastodon": "qui@bsd.cafe"
},
"record": {
"TXT": "88feaaecca94fbb634748f98c0c48e"
diff --git a/domains/_vercel.sebaslv.json b/domains/_vercel.sebaslv.json
new file mode 100644
index 000000000..89156d7f2
--- /dev/null
+++ b/domains/_vercel.sebaslv.json
@@ -0,0 +1,10 @@
+{
+ "owner": {
+ "username": "AfterLehxuz",
+ "email": "juans.lopez2004@gmail.com",
+ "discord": "886029396400570429"
+ },
+ "record": {
+ "TXT": "vc-domain-verify=sebaslv.is-a.dev,6ca8920001de10180ecf"
+ }
+}
diff --git a/domains/chino.json b/domains/chino.json
index 7ac2bff70..6cc8e9558 100644
--- a/domains/chino.json
+++ b/domains/chino.json
@@ -1,6 +1,6 @@
{
"description": "My website",
- "repo": "https://github.com/AutumnVN/autumnvn.github.io",
+ "repo": "https://github.com/AutumnVN/chino.pages.dev",
"owner": {
"username": "AutumnVN",
"email": "autumnvnchino@gmail.com",
@@ -8,6 +8,6 @@
"discord": "autumnvn"
},
"record": {
- "CNAME": "chino.pages.dev"
+ "NS": ["lina.ns.cloudflare.com", "miles.ns.cloudflare.com"]
}
}
diff --git a/domains/devarnav.json b/domains/devarnav.json
new file mode 100644
index 000000000..06bed0d51
--- /dev/null
+++ b/domains/devarnav.json
@@ -0,0 +1,17 @@
+{
+ "owner": {
+ "username": "ArnavBarway",
+ "email": "playnav.yt@gmail.com"
+ },
+
+ "record": {
+ "A": [
+"185.199.111.153",
+"185.199.108.153",
+"185.199.110.153",
+"185.199.109.153"
+],
+"MX":["mx.zoho.com", "mx2.zoho.com"],
+"TXT":"v=spf1 include:zoho.in ~all"
+ }
+}
diff --git a/domains/ghozi.json b/domains/ghozi.json
new file mode 100644
index 000000000..39196f450
--- /dev/null
+++ b/domains/ghozi.json
@@ -0,0 +1,9 @@
+{
+ "owner": {
+ "username": "m-ghozi",
+ "email": "ghozi286@gmail.com"
+ },
+ "record": {
+ "CNAME": "m-ghozi.github.io"
+ }
+}
diff --git a/domains/haft.json b/domains/haft.json
new file mode 100644
index 000000000..c79f1e7a2
--- /dev/null
+++ b/domains/haft.json
@@ -0,0 +1,12 @@
+{
+ "description": "socials, etc",
+ "repo": "https://github.com/HaftIsntHere/haftisnthere.github.io",
+ "owner": {
+ "username": "HaftIsntHere",
+ "discord": "imhaft",
+ "email": "haftthedev@gmail.com"
+ },
+ "record": {
+ "CNAME": "haftisnthere.github.io"
+ }
+}
diff --git a/domains/lemmy.json b/domains/lemmy.json
new file mode 100644
index 000000000..419a2b24a
--- /dev/null
+++ b/domains/lemmy.json
@@ -0,0 +1,11 @@
+{
+ "description": "Registration blocked due to consistent DDoS attacks against the domain.",
+ "owner": {
+ "username": "is-a-dev",
+ "email": "security@is-a.dev"
+ },
+ "record": {
+ "A": ["192.0.2.1"]
+ },
+ "proxied": true
+}
diff --git a/domains/mc.haft.json b/domains/mc.haft.json
new file mode 100644
index 000000000..6cf4bd80a
--- /dev/null
+++ b/domains/mc.haft.json
@@ -0,0 +1,12 @@
+{
+ "description": "socials, etc",
+ "repo": "https://github.com/HaftIsntHere/haftisnthere.github.io",
+ "owner": {
+ "username": "HaftIsntHere",
+ "discord": "imhaft",
+ "email": "haftthedev@gmail.com"
+ },
+ "record": {
+ "A": ["38.22.104.156"]
+ }
+}
diff --git a/domains/obedev.json b/domains/obedev.json
new file mode 100644
index 000000000..eb7b2b63d
--- /dev/null
+++ b/domains/obedev.json
@@ -0,0 +1,10 @@
+{
+ "owner": {
+ "username": "Obed0101",
+ "email": "obedev.dev@gmail.com",
+ "discord": "1149424852986511441"
+ },
+ "record": {
+ "CNAME": "obedev.onrender.com"
+ }
+}
diff --git a/domains/playreaver.json b/domains/playreaver.json
new file mode 100644
index 000000000..6b7b24dec
--- /dev/null
+++ b/domains/playreaver.json
@@ -0,0 +1,13 @@
+{
+ "owner": {
+ "username": "playreaver",
+ "email": "",
+ "discord": "802466803984760853",
+ "OWL": "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiUlNBLU9BRVAiLCJraWQiOiJaa1VsRmRqVThiUEstLXVVM2JJR09PVHFYYVFFS1ZINFVXOW53MTR6WTJnIn0.YIQZW1Q4GvuHtwoVApEhTUfnTvZRbzgeTMFBwrRj4bRe-r37w_KlqAfvqDuBXCPv7a7uPkwE5evyx_DVX2UJ3Jl5M8N1SMKIg26cnzShzMARtF1m6oBGlei_fGung5SHj0UUekOnNqE6XlspxmKZLRT1EfT9H1DxLxXHlWjOaV1uAtEyKcZvv5G1TR_pLEanpcAik1jHaSdRoMOHH_LL4T-yZ_AcY2qfzI9dKdkJSdzdjw0ZKhmmFX9APqUTf9AWV2P0Aj_dKIKejzdR8CgTqnofaI7eWZ3kAJp_8LDVNoisvJvr2BgnPGvCQ_Lfv7YRouD7UE0SHEh9Rb0Ev1owsQ.FDIBraLuBZXlcNTt3jsXdA.MRrBmfOZ3L9_pnW4SuCmAaAr23yqsMOp-ptrX4TUFwY9Gobq7XyzKp1q-8w4Uv_bTsDEVj-QvEhsCRFKrnctLb-yDWHCJfQMau1mgwCgaK4.qG8M04A5TqkLwQnOLJD0QA"
+ },
+
+ "record": {
+ "CNAME": "playreaver.github.io"
+ }
+ }
+
diff --git a/domains/qui.json b/domains/qui.json
index bca631b5e..5b6c1f641 100644
--- a/domains/qui.json
+++ b/domains/qui.json
@@ -1,11 +1,9 @@
{
- "owner": {
- "username": "thatqui",
- "email": "_qui@tuta.io",
- "discord": "723148774137921738",
- "OWL": "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiUlNBLU9BRVAiLCJraWQiOiJaa1VsRmRqVThiUEstLXVVM2JJR09PVHFYYVFFS1ZINFVXOW53MTR6WTJnIn0.jXGBO7Tsfyu_psmXqlYGGIyt2tZkd87qioPa0FEavsjkdz7cgkNenlSSYSYXrtvtPL4vuZEegKgIHnq8T0lkRDMLM2LmzamYm7JKkH401CE_24-KF0fh9Q7sRmgNJ_hO8RiESqC3zGJbvpIpXE2xZOAVLl9iNrjdd-5ErHzoBFkG5_ZjuN2xm-HRNuxyDf5cugkfQToZIXxitzWW73su9-QVyvY0vvzKXKtUaWpLffLIUfBTOf7DTJMZisqSIWYndMonBJbO_C458XYHnw0Iw_YiEULX0xNSsFx1IPTziJ4o4LywTFQP7jCc9LwSwIyeUuiO57g0lZdQzMihHKMOiA.Rl_Q9Am5PKiV7JEsEEtTtw.8wYlcB6Bw0H8GOjoYYpbiYR0eNicrsUOEbNgz2X4Km3_fyafRHp8C-RD5HfQEAx6lwsbaa1TY4yCrhU-R-4SwA.OeNvXsjqdk2rqhdIsPQnFg"
- },
- "record": {
- "CNAME": "thatqui.github.io"
- }
+ "owner": {
+ "username": "quiww",
+ "mastodon": "qui@bsd.cafe"
+ },
+ "record": {
+ "CNAME": "quiww.github.io"
+ }
}
diff --git a/domains/really.json b/domains/really.json
new file mode 100644
index 000000000..00ab0224a
--- /dev/null
+++ b/domains/really.json
@@ -0,0 +1,9 @@
+{
+ "owner": {
+ "username": "ukriu",
+ "email": "isadev@ukriu.com"
+ },
+ "record": {
+ "CNAME": "ukriu.pages.dev"
+ }
+}
diff --git a/domains/sebaslv.json b/domains/sebaslv.json
new file mode 100644
index 000000000..819018324
--- /dev/null
+++ b/domains/sebaslv.json
@@ -0,0 +1,9 @@
+{
+ "owner": {
+ "username": "AfterLehxuz",
+ "email": "juans.lopez2004@gmail.com"
+ },
+ "record": {
+ "CNAME": "sebaslv.vercel.app"
+ }
+}
diff --git a/domains/tentomasne.json b/domains/tentomasne.json
new file mode 100644
index 000000000..8974a9512
--- /dev/null
+++ b/domains/tentomasne.json
@@ -0,0 +1,8 @@
+{
+ "owner": {
+ "username": "jasomtubratu"
+ },
+ "record": {
+ "CNAME": "tomasdavidik.sk"
+ }
+}
diff --git a/domains/www.joe50097.json b/domains/www.joe50097.json
index 7f5cfbe96..469cdaf61 100644
--- a/domains/www.joe50097.json
+++ b/domains/www.joe50097.json
@@ -5,5 +5,6 @@
},
"record": {
"CNAME": "joe50097.netlify.app"
- }
+ },
+ "proxied":false
}
diff --git a/domains/xpr.json b/domains/xpr.json
new file mode 100644
index 000000000..a08732c83
--- /dev/null
+++ b/domains/xpr.json
@@ -0,0 +1,12 @@
+{
+ "description": "xprsh site",
+ "repo": "https://codeberg.org/xpr/pages",
+ "owner": {
+ "username": "xpr",
+ "email": "xpr@atl.tools",
+ "discord": "xprsh"
+ },
+ "record": {
+ "CNAME": "xpr.codeberg.page"
+ }
+}
diff --git a/domains/zmail._domainkey.crazo7924.json b/domains/zmail._domainkey.crazo7924.json
new file mode 100644
index 000000000..63d87b81b
--- /dev/null
+++ b/domains/zmail._domainkey.crazo7924.json
@@ -0,0 +1,10 @@
+{
+ "owner": {
+ "username": "crazo7924",
+ "discord": "466605393309859840",
+ "OWL": "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiUlNBLU9BRVAiLCJraWQiOiJaa1VsRmRqVThiUEstLXVVM2JJR09PVHFYYVFFS1ZINFVXOW53MTR6WTJnIn0.k9rR1eHnq7uURmU-Gme0lWVuRCgtdsqYuSpLzPv0G68LByI1gx0khH5ox4H2V80xgK3Bj-i4hYIJaS8Cou5ZL8EQaMw9xDush8iTbkbNHN9ATisdhtzmb6qW5nLZnXcWqMCyKn1xfsbacMkgtfLap5CISiVDORL2u3pHIPyZ6bQ27y7AYlZwSZQqaOADn-S1co-kYuiVDLN6jKbqsjJyTK_ZBYICiAPYfKUFTQWmo5jl0rHn06niVoYZSDmmbqc-n-vzfwr0TNibE4tJ30VYlCJsEKFJu7Em7Q9JpfLCfbg9hNdw3rsz0wLptjYMNA3szl2ydMCsFtr3GHna7bvkww.KkiDy_AodaD643bHTbzCmQ.SEHezEze3r6v7trpOsu6dAaoTa595V1whd_eOWS_MNcoUqymmXqSlzxNji3pqALMmcQHjZYu89BBGcIcD6RTPTeHALeFkmf81fZv8PxJJrT2ssh8nmNIRX-kUvcxqQ-J.cJfYl8zbT1DQOyg2OOBorg"
+ },
+ "record": {
+ "TXT": "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsG1oi5DHp9ytwPT5aMFt28zy4rxWQ39qLPUJT+jFKVR6/eIIgGfrlQn1VbDNuQum0orxkFlPrOi9tzSxxGKRa5BzXawxk56Je8oy5YZ9L28MpbYlsbiQoc3XQwdBwFp1hbhtBJAm7QmpH6nKk8NZqXGCrq9auS6ShDazaq/ipswIDAQAB"
+ }
+}