Checkly changelog
Checkly changelog
checklyhq.com

DNS module is now available in all runtimes

 

Improvement

 

 

We just added the dns module to our allow-list for all script runtimes. Some customers expressed interest in using a DNS lookup or some other DNS operation in their API setup scripts and / or in their Playwright browser checks.

We recommend using the .promises API. This works as follows:

const resolver = require('dns').promises
const res = await resolver.lookup('checklyhq.com')
console.log(res)
// this prints: { address: '13.249.43.121', family: 4 }

Full docs are here for the Nodejs 12 runtime https://nodejs.org/docs/latest-v12.x/api/dns.html