mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-24 17:35:18 +00:00
Merge branch 'main' into main
This commit is contained in:
+1
-1
@@ -5,4 +5,4 @@
|
||||
|
||||
*.md @is-a-dev/maintainers
|
||||
/LICENSE @phenax
|
||||
/dnsconfig.js @wdhdev @andrewstech
|
||||
/dnsconfig.js @wdhdev
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
<img alt="Open Issues" src="https://img.shields.io/github/issues-pr-raw/is-a-dev/register?color=5c46eb&label=pull%20requests&style=for-the-badge">
|
||||
<br>
|
||||
<img alt="Publish" src="https://github.com/is-a-dev/register/actions/workflows/publish.yml/badge.svg">
|
||||
<img alt="Raw API" src="https://github.com/is-a-dev/register/actions/workflows/raw-api.yml/badge.svg">
|
||||
</p>
|
||||
|
||||
<h1 align="center">is-a.dev</h1>
|
||||
|
||||
+76
-29
@@ -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);
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "Ciao287",
|
||||
"discord": "687333016921440317"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "dh=ce277d8733f3951ace98e01de4cbf58ffca4b4c6"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "jasomtubratu"
|
||||
},
|
||||
"record": {
|
||||
"TXT": ["dh=47fddb5e68440c61b93da59a8e57d91da546ae1e"]
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "thatqui",
|
||||
"email": "_qui@tuta.io"
|
||||
"username": "quiww",
|
||||
"mastodon": "qui@bsd.cafe"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "88feaaecca94fbb634748f98c0c48e"
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "AfterLehxuz",
|
||||
"email": "juans.lopez2004@gmail.com",
|
||||
"discord": "886029396400570429"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "vc-domain-verify=sebaslv.is-a.dev,6ca8920001de10180ecf"
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -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"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "m-ghozi",
|
||||
"email": "ghozi286@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "m-ghozi.github.io"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "Obed0101",
|
||||
"email": "obedev.dev@gmail.com",
|
||||
"discord": "1149424852986511441"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "obedev.onrender.com"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
+7
-9
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "ukriu",
|
||||
"email": "isadev@ukriu.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "ukriu.pages.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "AfterLehxuz",
|
||||
"email": "juans.lopez2004@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "sebaslv.vercel.app"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "jasomtubratu"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "tomasdavidik.sk"
|
||||
}
|
||||
}
|
||||
@@ -5,5 +5,6 @@
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "joe50097.netlify.app"
|
||||
}
|
||||
},
|
||||
"proxied":false
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user