reversed 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/reversed.rb +1 -1
- data/lib/reversed/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 594ca1e774b4031668eafd22a336b2a2fe99d720
|
4
|
+
data.tar.gz: 0c674d09beac0f3a2ce58e3a40bc9f993e7adcce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f99f3e6092404105f77b339b9f476cb9c1f61be0c2b5924020481ef6013f1cf405d205231744ea68205ed3206b5fa65e27e1fc4168a8b096405ac9317cd730fb
|
7
|
+
data.tar.gz: 16f02b99f2e39c218f01fbc2af67e126b7f699744fb9b4a82bc4ecdf25fc7c8d45462797db3069079c73d3500b4f0ea15347311efeddefb77d65e7ac3b2d5360
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/reversed.rb
CHANGED
@@ -6,7 +6,7 @@ module Reversed
|
|
6
6
|
def self.lookup(ip)
|
7
7
|
ip = ip.to_s
|
8
8
|
unless ip.empty?
|
9
|
-
resolver = Net::DNS::Resolver.new(
|
9
|
+
resolver = Net::DNS::Resolver.new(retry: 3).search(ip)
|
10
10
|
answer = resolver.answer.first || resolver.authority.first
|
11
11
|
if answer
|
12
12
|
hostname = answer.value.split(" ").first[0..-2]
|
data/lib/reversed/version.rb
CHANGED