dns_one 0.4.42 → 0.4.43

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: 720e329fe952ba684c4e6001246b8b238dd00d06
4
- data.tar.gz: e9a0cfe54c495ecb29c34215fe76f8eb1a4b7f21
3
+ metadata.gz: e5fbfb69c969d6f50af97241ec152d36796aee92
4
+ data.tar.gz: eeff25e403352b555901371a34ff8662a87cbf74
5
5
  SHA512:
6
- metadata.gz: 98905e1e4e821f5261d526b2b3e5bf386622dc601dc0a4b86b6896a04f0756cc2d62b81f269ace6816fef6ec84dd4d502d829e31fd535e96dca6f9b8ef5c4bf7
7
- data.tar.gz: a0442761bcfb01eae650db2c9d9121a6854f545ac80116a93750eeb990921372a561dec99c0dd24783a121430ab5ae2ca119c2f4bf78ef3dd929605740ab0ef2
6
+ metadata.gz: '0188cba43e02c3811a9b9a23f4530d2518a60648588880fb495bb432a6af57e79e59cc8e41bd5869a332eddec7740ab2855f9bc0a56c4f2c62d4dc7c1106185b'
7
+ data.tar.gz: 7ce9694ebae316585307d535c1ed39ec84ff7011160af6528a566cc68428807cadc3990b143244d212e30d2550044af393d57b856c645bca318893c365522a97
@@ -62,7 +62,7 @@ module DnsOne; class Server
62
62
  end
63
63
 
64
64
  stat.save rcode, t.resource_class, from_cache
65
- Util.log_result ip_address, domain_name, t.resource_class, rcode, resp_log
65
+ Util.log_result ip_address, domain_name, t.resource_class, rcode, resp_log, from_cache
66
66
 
67
67
  raise e if e
68
68
  end
data/lib/dns_one/util.rb CHANGED
@@ -30,7 +30,7 @@ module DnsOne; class Util; class << self
30
30
  constant.to_s.split('::').last
31
31
  end
32
32
 
33
- def log_result ip_address, domain_name, res_class, rcode, resp_log
33
+ def log_result ip_address, domain_name, res_class, rcode, resp_log, from_cache
34
34
  fields = []
35
35
 
36
36
  fields << domain_name
@@ -42,6 +42,7 @@ module DnsOne; class Util; class << self
42
42
  [rec.val].flatten.join(',')
43
43
  }.join(';')
44
44
  fields << ip_address
45
+ fields << (from_cache ? '1' : '0')
45
46
 
46
47
  fields.map!{|v| v.blank? ? '-' : v}
47
48
 
@@ -1,3 +1,3 @@
1
1
  module DnsOne
2
- VERSION = "0.4.42"
2
+ VERSION = "0.4.43"
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.42
4
+ version: 0.4.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lobato