Skip to content

Commit bf7ebc0

Browse files
authored
move data, docs to direct zone file
1 parent 0aaa2d9 commit bf7ebc0

File tree

5 files changed

+12
-28
lines changed

5 files changed

+12
-28
lines changed

dnsconfig.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ for (var i = 0; i < reserved.length; i++) {
143143
if (
144144
subdomainName !== "autoconfig" &&
145145
subdomainName !== "autodiscover" &&
146+
subdomainName !== "data" &&
147+
subdomainName !== "docs" &&
146148
subdomainName !== "ns1" &&
147149
subdomainName !== "ns2" &&
148150
subdomainName !== "ns3" &&
@@ -172,6 +174,8 @@ var ignored = [
172174
IGNORE("_psl", "TXT"),
173175
IGNORE("autoconfig", "CNAME"),
174176
IGNORE("autodiscover", "CNAME"),
177+
IGNORE("data", "CNAME"),
178+
IGNORE("docs", "CNAME"),
175179
IGNORE("ns[1-4]", "A,AAAA"),
176180
IGNORE("raw", "CNAME"),
177181
IGNORE("www", "*")

domains/data.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

domains/docs.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

util/raw-api.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ for (const subdomain of reserved) {
2222
reserved: true
2323
};
2424

25+
const reservedRecords = {
26+
URL: "https://is-a.dev/reserved"
27+
}
28+
2529
v1.push({
2630
...commonData,
27-
record: {
28-
"URL": "https://is-a.dev/reserved"
29-
}
31+
record: reservedRecords
3032
});
3133

3234
v2.push({
3335
...commonData,
34-
records: {
35-
"URL": "https://is-a.dev/reserved"
36-
}
36+
records: reservedRecords
3737
});
3838
}
3939

util/reserved.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
"com",
2222
"dash",
2323
"dashboard",
24+
"data",
2425
"dev",
2526
"discord",
2627
"dns",
2728
"doc",
29+
"docs",
2830
"documentation",
2931
"domain",
3032
"email",

0 commit comments

Comments
 (0)