Skip to content

An IP address parser in Ruby using the datacenters list from IPCat.

License

Notifications You must be signed in to change notification settings

outrank/datacenter_lookup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datacenter Lookup

Datacenter Lookup is an IP address parser in Ruby using the datacenters list from IPCat.

Installation:

gem 'datacenter_lookup', '~> 0.1.3'

Then, look up your IP address like so:

irb
require 'datacenter_lookup'
dc = DatacenterLookup::Parser.new()
ip = "5.79.26.0"
puts dc.find(ip) # => "http://www.rackspace.com/"
ip2 = "1.1.1.1"
puts dc.find(ip2) # => nil

About

An IP address parser in Ruby using the datacenters list from IPCat.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%