After investing a considerable amount of time into this task, I'm uncertain about its feasibility: Creating a reverse lookup of IP addresses and logging it through morgan
Express.use(Morgan(async(tokens, req, res) => {
async function ip_reverse_lookup(ip) {
return hostnames = await dns.reverse(ip)
}
hostnames = await ip_reverse_lookup(ip)
return hostnames
}
However, the current output in the console displays [object Promise] when using morgan