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;
|
const fullDomain = result.domain + "." + result.tld;
|
||||||
let records = await GetAllRecords(fullDomain);
|
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});
|
res.render('dns', {title: pageTitle, domain: result, dnsRecords: records});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
{{#each dnsRecords}}
|
{{#each dnsRecords}}
|
||||||
<p>{{key}}</p>
|
<p>{{@key}}</p>
|
||||||
<p>{{value.host}}</p>
|
<p>{{value.host}}</p>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user