From fb97c98b75f1868acfd90232241a239c6e7c2b55 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 13 Mar 2025 19:50:57 +0800 Subject: [PATCH] push dns records to reserved domains --- dnsconfig.js | 7 +++++++ domains/nic.json | 9 --------- domains/reserved.json | 9 +++++++++ util/reserved.json | 2 +- 4 files changed, 17 insertions(+), 10 deletions(-) delete mode 100644 domains/nic.json create mode 100644 domains/reserved.json diff --git a/dnsconfig.js b/dnsconfig.js index 61a3974cec..a9ca5fa3fe 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -137,6 +137,13 @@ for (var subdomain in domains) { } } +const reserved = require("./util/reserved.json"); + +// Handle reserved domains +for (const subdomain of reserved) { + records.push(CNAME(subdomain), "reserved.is-a.dev", CF_PROXY_ON); +} + var options = { no_ns: "true" }; diff --git a/domains/nic.json b/domains/nic.json deleted file mode 100644 index c78690f365..0000000000 --- a/domains/nic.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "owner": { - "username": "is-a-dev", - "email": "admin@is-a.dev" - }, - "record": { - "URL": "https://is-a.dev" - } -} diff --git a/domains/reserved.json b/domains/reserved.json new file mode 100644 index 0000000000..2df8fef75c --- /dev/null +++ b/domains/reserved.json @@ -0,0 +1,9 @@ +{ + "owner": { + "username": "is-a-dev", + "email": "admin@is-a.dev" + }, + "record": { + "URL": "https://is-a.dev/reserved" + } +} diff --git a/util/reserved.json b/util/reserved.json index 4d8f280b09..a285827d2f 100644 --- a/util/reserved.json +++ b/util/reserved.json @@ -68,6 +68,7 @@ "net", "network", "news", + "nic", "noc", "notification", "notifications", @@ -98,7 +99,6 @@ "redirect", "registrar", "registry", - "reserved", "root", "secure", "security",