add logging to dns page
This commit is contained in:
@@ -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});
|
||||
});
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<div>
|
||||
{{#each dnsRecords}}
|
||||
<p>{{key}}</p>
|
||||
<p>{{@key}}</p>
|
||||
<p>{{value.host}}</p>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user