Project

reversed

0.02
Low commit activity in last 3 years
No release in over a year
Reverse DNS / IP Lookup for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Reversed

šŸŒŽ Reverse DNS / IP Lookup for Ruby

Reversed.lookup("8.8.4.4")
# "dns.google"

Works with IPv4 and IPv6

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

Build Status

Installation

Add this line to your applicationā€™s Gemfile:

gem "reversed"

Reference

Set timeout

Reversed.lookup(ip, timeout: 3)

Set nameservers

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

Disable SOA fallback (only check PTR record)

Reversed.lookup(ip, fallback: false)

History

View the changelog

Contributing

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

To get started with development:

git clone https://github.com/ankane/reversed.git
cd reversed
bundle install
bundle exec rake test