Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Generate /etc/whois.conf file for gnu whois command
* Usage : node generateWhoisConf.js > /etc/whois.conf
var json = require('comment-json');
var request = require('request');
request('', function(error, response, body){
var obj = json.parse(body);
console.log(key.replace(/\./g,'\\.') + '$ ' + obj[key].host);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.