A simple Whois server with a simple simple API and a front-end built with AngularJS.

James Peret: b34e0eb6b6 Whois API basic documentation лет %!s(int64=10): %!d(string=назад)
public 46d58a4053 J1X Whois Server modifications лет %!s(int64=10): %!d(string=назад)
views 46d58a4053 J1X Whois Server modifications лет %!s(int64=10): %!d(string=назад)
.DS_Store 46d58a4053 J1X Whois Server modifications лет %!s(int64=10): %!d(string=назад)
.gitignore 46d58a4053 J1X Whois Server modifications лет %!s(int64=10): %!d(string=назад)
.ruby-version 66912bc157 update this old bag of bones лет %!s(int64=10): %!d(string=назад)
Gemfile 54b0d0492b Added support for CORS лет %!s(int64=10): %!d(string=назад)
Gemfile.lock 54b0d0492b Added support for CORS лет %!s(int64=10): %!d(string=назад)
README.md b34e0eb6b6 Whois API basic documentation лет %!s(int64=10): %!d(string=назад)
config.ru 75fab7a59e Rack CORS re config fix 3 лет %!s(int64=10): %!d(string=назад)
json_parser.rb b34e0eb6b6 Whois API basic documentation лет %!s(int64=10): %!d(string=назад)
main.rb b34e0eb6b6 Whois API basic documentation лет %!s(int64=10): %!d(string=назад)

README.md

J1X Whois API

A simple WHOIS lookup API.

Based on the Whoiz by Jason Ormand application and usging the Ruby Whois gem.

How it works

Access the J1X Whois API and get a JSON response back.

Browser

http://whois.j1x.co
http://whois.j1x.co/lookup?url=google.com

curl

curl http://whois.j1x.co/lookup.json?url=google.com

Install

Clone

git clone git://gitlab.j1x.co/j1x/whois-server.git

Restrict It

Edit main.rb:

before do
  response['Access-Control-Allow-Origin'] = 'http://yourwebsite.com'
end

Or use * to allow any website to access the API.

Deploy It

heroku create
git push heroku master
heroku open

Development Resources

Tools

  • Rubular - a Ruby regular expression editor

Articles