google-dns 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/google/dns/version.rb +1 -1
- data/lib/google/dns.rb +3 -3
- metadata +3 -3
data/lib/google/dns/version.rb
CHANGED
data/lib/google/dns.rb
CHANGED
@@ -4,11 +4,11 @@ class Resolv
|
|
4
4
|
def self.use_google_dns
|
5
5
|
# dns
|
6
6
|
nameservers = ['8.8.8.8', '8.8.4.4']
|
7
|
-
dns = Resolv::DNS.new(nameserver: nameservers)
|
7
|
+
dns = Resolv::DNS.new(nameserver: nameservers, search: ['mydns.com'], ndots: 1))
|
8
8
|
|
9
9
|
# resolver
|
10
|
-
hosts = Resolv::Hosts.new
|
11
|
-
resolver = new([hosts, dns
|
10
|
+
hosts = Resolv::Hosts.new()
|
11
|
+
resolver = new([hosts, dns]
|
12
12
|
|
13
13
|
# replace constant
|
14
14
|
remove_const :DefaultResolver
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-dns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
segments:
|
75
75
|
- 0
|
76
|
-
hash: -
|
76
|
+
hash: -2933402839453294451
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
segments:
|
84
84
|
- 0
|
85
|
-
hash: -
|
85
|
+
hash: -2933402839453294451
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
88
|
rubygems_version: 1.8.25
|