function checkInternetConnection () {
  return new Promise((resolve) => {
    require('dns').lookup('microsoft.com', (err) => {
      if (err && err.code === 'ENOTFOUND') {
        resolve(false)
      } else {
        resolve(true)
      }
    })
  })
}
Checks for an active Internet connection by doing a DNS lookup of Microsoft.com.

@return {Promise.<boolean>} - True if lookup succeeded (or if we skip the test)