dns_one 0.4.11 → 0.4.12

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: dc96e62e3fc55874764788c0264c4274c212851c
4
- data.tar.gz: ef41daa701680133c1c6022117080f22f5af4595
3
+ metadata.gz: 8e32371317a91502803f733ed239d95b56f9e80b
4
+ data.tar.gz: '038dcad02c3b509e54b8c8fe7acb4b24a59dda50'
5
5
  SHA512:
6
- metadata.gz: ecc8621343d5ecbe6c2a1d5e6cc3a0bfed2f2ec1b0115ffcbed675f6fac5ea518594723ba23a0e6b657e69476637ea58e5e805d2c1130e19efd96d1e64002213
7
- data.tar.gz: 239f9b7416eb853f38241151b41b727438d34acf3b6dde3b92d3ef762be381133bfff66ab07dfc33c8c4116af0608cff92a5490b05962c9c92e907ad9571eaa1
6
+ metadata.gz: 022306f22bb4702f4e145cbb593f388b75587f1bd27c9391db9ea544e303a51ba4ee3acc6c49d8a4bddd49befc062b55a4d429839f8d029668049f1aa0c33264
7
+ data.tar.gz: 0b4fab3ef66e677a6eb41f08945c4d443c2b19282d775356d6d5feba377799b1fb2d41b1e6baf8f9602cf1cad1d2943bf38c67e1f616d87b176b83bd2f8d9215
@@ -17,6 +17,11 @@ module DnsOne; class Server # < RExec::Daemon::Base
17
17
 
18
18
  def run
19
19
  conf = @conf
20
+ zone_search = ZoneSearch.instance
21
+
22
+ # Find a dummy zone to make AR/pg load all dependencies
23
+ zone_search.query 'dummy.com.br', Resolv::DNS::Resource::IN, '1.2.3.4'
24
+
20
25
  RubyDNS::run_server(listen: dns_daemon_interfaces, logger: Log.logger) do
21
26
  on(:start) do
22
27
  if RExec.current_user == 'root'
@@ -30,7 +35,7 @@ module DnsOne; class Server # < RExec::Daemon::Base
30
35
  domain_name = t.question.to_s
31
36
  ip_address = t.options[:peer] rescue nil
32
37
 
33
- records = ZoneSearch.instance.query domain_name, t.resource_class, ip_address
38
+ records = zone_search.query domain_name, t.resource_class, ip_address
34
39
 
35
40
  if records
36
41
  if records.empty?
@@ -1,3 +1,3 @@
1
1
  module DnsOne
2
- VERSION = "0.4.11"
2
+ VERSION = "0.4.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dns_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lobato