WHOIS

bmeck edited this page Jun 23, 2012 · 1 revision
Clone this wiki locally

RFCS

Examples

Client

var request = whois.lookup({
  domain: 'x.local',
  server: 'local.whois-server.net', /*default undefined will attempt to use :tld.whois-servers.net*/
  port: 43
});
request.send();

Server

var server = whois.createServer();
server.on('request', function (req, res) {
  res.end('all my text'); /* \r\n will be added to the end if not present */
});