Welcome aboard! We are happy you are here and wish you good net-raft!
var http = require('http');
var dns = require('dns');
var srv = http.createServer(function (req, res) {
var net = dns.lookup('www.youtube.com', function (err, addresses, family) {
res.end(addresses);
});
});
srv.listen(3000);
console.log("Listening to Port 3000");
The most helpful NODEJS solutions
get user ipNODEJS Click to see more ... 8.1K 1.7K