From 125e902f84f58a92385948e0fbce98dd64c035da Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:54:09 +1100 Subject: [PATCH] update reserved domains --- dnsconfig.js | 5 ----- domains/m.json | 8 -------- domains/maintainers.json | 8 -------- domains/nic.json | 8 -------- domains/whois.json | 8 -------- util/reserved-domains.json | 22 ++++++++++++++++++++++ 6 files changed, 22 insertions(+), 37 deletions(-) delete mode 100644 domains/m.json delete mode 100644 domains/maintainers.json delete mode 100644 domains/nic.json delete mode 100644 domains/whois.json create mode 100644 util/reserved-domains.json diff --git a/dnsconfig.js b/dnsconfig.js index 43ea99aa6..2c80fcee4 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -140,11 +140,6 @@ for (var subdomain in domains) { if (domainData.record.URL) { records.push(A(subdomainName, IP("192.0.2.1"), CF_PROXY_ON)); } - - // Handle reserved domains - if (domainData.reserved) { - records.push(TXT(subdomainName, "\"" + "RESERVED" + "\"")); - } } var options = { diff --git a/domains/m.json b/domains/m.json deleted file mode 100644 index 1570b3e57..000000000 --- a/domains/m.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "owner": { - "username": "is-a-dev", - "email": "admin@is-a.dev" - }, - "record": {}, - "reserved": true -} diff --git a/domains/maintainers.json b/domains/maintainers.json deleted file mode 100644 index 1570b3e57..000000000 --- a/domains/maintainers.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "owner": { - "username": "is-a-dev", - "email": "admin@is-a.dev" - }, - "record": {}, - "reserved": true -} diff --git a/domains/nic.json b/domains/nic.json deleted file mode 100644 index 1570b3e57..000000000 --- a/domains/nic.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "owner": { - "username": "is-a-dev", - "email": "admin@is-a.dev" - }, - "record": {}, - "reserved": true -} diff --git a/domains/whois.json b/domains/whois.json deleted file mode 100644 index 1570b3e57..000000000 --- a/domains/whois.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "owner": { - "username": "is-a-dev", - "email": "admin@is-a.dev" - }, - "record": {}, - "reserved": true -} diff --git a/util/reserved-domains.json b/util/reserved-domains.json new file mode 100644 index 000000000..b31dab44d --- /dev/null +++ b/util/reserved-domains.json @@ -0,0 +1,22 @@ +[ + "api", + "dns", + "example", + "m", + "mail", + "maintainer", + "maintainers", + "nic", + "noc", + "notification", + "notifications", + "notify", + "ns", + "ns[1-9]", + "redirect", + "registry", + "url", + "whois", + "www[1-9]", + "wwww" +]