From 89f8e16a4bfe90ab1f738e6f184a44f481cb8717 Mon Sep 17 00:00:00 2001 From: Modnark Date: Thu, 14 May 2026 15:43:46 -0400 Subject: [PATCH] add logging to dns page --- routes/dns.js | 4 ++++ views/dns.handlebars | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/routes/dns.js b/routes/dns.js index d1eb871..b82bd65 100644 --- a/routes/dns.js +++ b/routes/dns.js @@ -27,6 +27,10 @@ router.get('/dns/edit/:domainId', authMw.AllowIfAuthenticated, async (req, res, const fullDomain = result.domain + "." + result.tld; let records = await GetAllRecords(fullDomain); + for(let i = 0; i < records.length; i++) { + console.log(records[i]); + } + res.render('dns', {title: pageTitle, domain: result, dnsRecords: records}); }); diff --git a/views/dns.handlebars b/views/dns.handlebars index c7661b1..f982b8f 100644 --- a/views/dns.handlebars +++ b/views/dns.handlebars @@ -2,7 +2,7 @@
{{#each dnsRecords}} -

{{key}}

+

{{@key}}

{{value.host}}

{{/each}}