Project

reversed

0.02
Low commit activity in last 3 years
A long-lived project that still receives updates
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

>= 0.20
 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