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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0153a5578c5b4d7fffd13c7e8aaccb1f85fb13b2
4
- data.tar.gz: 4e7b4dbbe5e52bfac9578d4c797130d74169d881
3
+ metadata.gz: 594ca1e774b4031668eafd22a336b2a2fe99d720
4
+ data.tar.gz: 0c674d09beac0f3a2ce58e3a40bc9f993e7adcce
5
5
  SHA512:
6
- metadata.gz: 81994bac9fa7ea8961b0d01130c422804c6902ba4e9c02bef8df5369ea9d112acefac35c8965dfbc657099c04aff26866d51a28c8801c50b82f60ed616b6b70f
7
- data.tar.gz: 7eaa377e5f884d2f50d9f2245c47524bf5f27bf3a91b1bc94188bbd161fdca45f8e563cb76da9b9ef44a2505271b21978f7aa85f1ec72e15f4a20a7a2c6df858
6
+ metadata.gz: f99f3e6092404105f77b339b9f476cb9c1f61be0c2b5924020481ef6013f1cf405d205231744ea68205ed3206b5fa65e27e1fc4168a8b096405ac9317cd730fb
7
+ data.tar.gz: 16f02b99f2e39c218f01fbc2af67e126b7f699744fb9b4a82bc4ecdf25fc7c8d45462797db3069079c73d3500b4f0ea15347311efeddefb77d65e7ac3b2d5360
@@ -1,3 +1,7 @@
1
+ ## 0.1.1
2
+
3
+ - Use machine nameservers
4
+
1
5
  ## 0.1.0
2
6
 
3
7
  - First release
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ```ruby
6
6
  Reversed.lookup("8.8.4.4")
7
- # => {:domain=>"google.com", :hostname=>"google-public-dns-b.google.com"}
7
+ # {:domain=>"google.com", :hostname=>"google-public-dns-b.google.com"}
8
8
  ```
9
9
 
10
10
  Works with IPv4 and IPv6
@@ -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(nameservers: ["8.8.8.8", "8.8.4.4"], retry: 3).search(ip)
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]
@@ -1,3 +1,3 @@
1
1
  module Reversed
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reversed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane