Reverse DNS / IP Lookup for Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
CHANGELOG.md
Gemfile
README.md
Rakefile
reversed.gemspec

README.md

Reversed

🌎 Reverse DNS / IP Lookup for Ruby

Reversed.lookup("8.8.4.4")
# "google-public-dns-b.google.com"

Works with IPv4 and IPv6

Reversed.lookup("2a03:2880:2110:df07:face:b00c::1")
# "a.ns.facebook.com"

Installation

Add this line to your application’s Gemfile:

gem 'reversed'

And then execute:

bundle

Reference

Set timeout

Reversed.lookup(ip, timeout: 3)

Set nameservers

Reversed.lookup(ip, nameservers: ["8.8.8.8"])

History

View the changelog

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help: