Skip to content

Instantly share code, notes, and snippets.

@bluemonk
Created July 29, 2010 16:42
Show Gist options
  • Select an option

  • Save bluemonk/498616 to your computer and use it in GitHub Desktop.

Select an option

Save bluemonk/498616 to your computer and use it in GitHub Desktop.
whois$ rake console
(in /home/marco/GitHub/whois)
CodeStatistics (Rails) is not available
irb -rubygems -I lib -r whois.rb
irb(main):001:0> Whois::Server.guess("192.168.1.1")
=> #<Whois::Server::Adapters::Standard:0xb7681b74 @options={}, @host="whois.arin.net", @type=:ipv4, @allocation="192.0.0.0/8">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment