Advertisement
rg443

riswhois sync

May 29th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var net = require("net"), client = net.connect({port:43, host:"riswhois.ripe.net"}, function() {
  2.   console.log("connected to server!");
  3.   client.write("-M -F 0.0.0.0/0\n");
  4. });
  5. client.on("data", function(a) {
  6.   process.stdout.write(a.toString());
  7.   client.end();
  8. });
  9. client.on("end", function() {
  10.   console.log("done");
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement