diff --git a/lib/dns.js b/lib/dns.js index 04cf013f004..34545e835a0 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -120,15 +120,6 @@ exports.lookup = function(hostname, family, callback) { return {}; } - // Hack required for Windows because Win7 removed the - // localhost entry from c:\WINDOWS\system32\drivers\etc\hosts - // See http://daniel.haxx.se/blog/2011/02/21/localhost-hack-on-windows/ - // TODO Remove this once c-ares handles this problem. - if (process.platform == 'win32' && hostname == 'localhost') { - callback(null, '127.0.0.1', 4); - return {}; - } - var matchedFamily = net.isIP(hostname); if (matchedFamily) { callback(null, hostname, matchedFamily);