Skip to content

Instantly share code, notes, and snippets.

@eviltik
Created June 10, 2013 10:14
Show Gist options
  • Select an option

  • Save eviltik/5747723 to your computer and use it in GitHub Desktop.

Select an option

Save eviltik/5747723 to your computer and use it in GitHub Desktop.
nodejs dns bug ?
var async = require('async');
var dns = require('dns');
async.series([
function(next) {
dns.resolve4('www.microsoft.com',next);
},
],function(err,result) {
console.log(result[0][0]);
});
console.log('must be last line');
// ACTUAL OUTPUT
/*
must be last line
65.55.57.27
*/
// EXPECTED OUTPUT
/*
65.55.57.27
must be last line
*/
@maxvyaznikov
Copy link

"ACTUAL OUTPUT" is correct =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment