Sha256: eeb847f88a6093b96217402a05b2b39a9879ad7db36e0eb62c261b5b14bb257e
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
# Reversed :earth_americas: Reverse DNS / IP Lookup for Ruby ```ruby Reversed.lookup("8.8.4.4") # "dns.google" ``` Works with IPv4 and IPv6 ```ruby Reversed.lookup("2a03:2880:2110:df07:face:b00c::1") # "a.ns.facebook.com" ``` [![Build Status](https://github.com/ankane/reversed/workflows/build/badge.svg?branch=master)](https://github.com/ankane/reversed/actions) ## Installation Add this line to your application’s Gemfile: ```ruby gem "reversed" ``` ## Reference Set timeout ```ruby Reversed.lookup(ip, timeout: 3) ``` Set nameservers ```ruby Reversed.lookup(ip, nameservers: ["1.1.1.1"]) ``` Disable SOA fallback (only check PTR record) [unreleased] ```ruby Reversed.lookup(ip, fallback: false) ``` ## History View the [changelog](https://github.com/ankane/reversed/blob/master/CHANGELOG.md) ## Contributing Everyone is encouraged to help improve this project. Here are a few ways you can help: - [Report bugs](https://github.com/ankane/reversed/issues) - Fix bugs and [submit pull requests](https://github.com/ankane/reversed/pulls) - Write, clarify, or fix documentation - Suggest or add new features To get started with development: ```sh git clone https://github.com/ankane/reversed.git cd reversed bundle install bundle exec rake test ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reversed-0.4.1 | README.md |