node-rwhois
Node RWhois library that implements the ARIN RWhois protocol to serve usage to ARIN
Routing works similar to express (req,res)
Getting Started
Install RWhois Library
$ npm install rwhois
Setup a server
'use strict';var rwhois = var app = //handle ipv4 queriesapp //setup and listenapp
Options
Defaults
author: 'ESITED LLC' protocol: '1.5' capabilities: '003fff:00' port: 4321 hostname: 'localhost'
Overrides
Options can be overridden at instantiation time.
Example
var app =
Properties
- author - The author supplied in the banner back to the client
- protcol - The advertised protocol of the server
- capabilities - The advertised capabilities of the server
- port - Port to listen on
- hostname - Hostname given in the banner returned to the client
Building a Server
This library merely includes the protocol encapsulation, it does not create the database or to handle the queries.
We are planning on adding some helpers to aid in query resolution.
Changelog
0.3.0
- Overhauled core package
- Added debug support through the
debug
package - Extracted RWhoisConnection and RWhois libraries separately
- Implemented
linestream
to handle the incoming protocol parsing
0.2.0
- Upgraded to object-manage 0.8.x
0.1.1
- Fixed bug that would not close the server connection when the server was done sending data
0.1.0
- Initial Release