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 @@
{{key}}
+{{@key}}
{{value.host}}
{{/each}}