Skip to content

Instantly share code, notes, and snippets.

@etyp
Created December 1, 2016 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etyp/63ce0750874c18342ea798b3ee2b70af to your computer and use it in GitHub Desktop.
Save etyp/63ce0750874c18342ea798b3ee2b70af to your computer and use it in GitHub Desktop.
const dns = require('dns');
setInterval(() => {
dns.resolve('hive.com', (error) => {
if (error) console.log(error);
else console.log('Connected!');
});
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment