From e015d8d63b0f99f7a9dc81bfa6c36100e8d5cd41 Mon Sep 17 00:00:00 2001 From: Modnark Date: Thu, 14 May 2026 17:41:32 -0400 Subject: [PATCH] add "name" field to dns --- routes/dns.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/dns.js b/routes/dns.js index 219c257..6950aaf 100644 --- a/routes/dns.js +++ b/routes/dns.js @@ -35,7 +35,7 @@ router.get('/dns/edit/:domainId', authMw.AllowIfAuthenticated, async (req, res, const fullDomain = result.domain + "." + result.tld; const rawRecords = await GetAllRecords(fullDomain); let records = []; - let recordHeaders = ["Type"]; + let recordHeaders = ["Type", "Name"]; for(const [key, value] of Object.entries(rawRecords)) { let parsedVal = JSON.parse(value); @@ -49,6 +49,8 @@ router.get('/dns/edit/:domainId', authMw.AllowIfAuthenticated, async (req, res, } } + finalRecord["Name"] = CoreDNSToDomain(key); + if(recordType === undefined) { console.warn("Unknown record type!"); }