Replacement dns module in pure javascript for node.js