add logging to dns page

This commit is contained in:
2026-05-14 15:43:46 -04:00
parent f6d2dfa557
commit 89f8e16a4b
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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});
});
+1 -1
View File
@@ -2,7 +2,7 @@
<div>
{{#each dnsRecords}}
<p>{{key}}</p>
<p>{{@key}}</p>
<p>{{value.host}}</p>
{{/each}}
</div>