dns_one 0.4.59 → 0.4.60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dns_one.rb +3 -2
- data/lib/dns_one/server.rb +2 -1
- data/lib/dns_one/version.rb +1 -1
- data/util/sample_conf.yml +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: 2ecccc184d2a13934e03c06b2f59c70fae48f40a
|
4
|
+
data.tar.gz: bab36120ae86786fadb64884ac53084033a0ffaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6ee35d1abae420aa96da1f10e0fb703291aacf727c60e4674eb0b7404625e872c57f198bf9d3fa0566ea2f6f63e52769d8c8950714c40b91e2a161a42a4927f
|
7
|
+
data.tar.gz: fbcb29adf5adb4b10bc73cfbdc5b30082a29ecf6b9d64d5b6c4399919e0ba7e84082ad241f39dee1e1e238202a651d205b492339d776806e73311d21a274e1b7
|
data/lib/dns_one.rb
CHANGED
@@ -65,9 +65,10 @@ module DnsOne; class DnsOne
|
|
65
65
|
},
|
66
66
|
server: {
|
67
67
|
run_as: conf[:config][:run_as],
|
68
|
-
log_results: (conf[:config][:log_results] == '1'),
|
69
68
|
save_stats: (conf[:config][:save_stats] == '1'),
|
70
|
-
|
69
|
+
log_result_file: (conf[:config][:log_result_file] == '1'),
|
70
|
+
log_result_socket: (conf[:config][:log_result_socket] == '1'),
|
71
|
+
log_result_socket_file: (conf[:config][:log_result_socket_file] == '1'),
|
71
72
|
},
|
72
73
|
zone_search: {
|
73
74
|
ignore_subdomains: conf[:config][:ignore_subdomains],
|
data/lib/dns_one/server.rb
CHANGED
@@ -74,7 +74,7 @@ module DnsOne; class Server
|
|
74
74
|
stat.save rcode, t.resource_class, from_cache
|
75
75
|
end
|
76
76
|
|
77
|
-
if conf[:
|
77
|
+
if conf[:log_result]
|
78
78
|
Util.log_result ip_address, domain_name, t.resource_class, rcode, resp_log, from_cache
|
79
79
|
end
|
80
80
|
|
@@ -148,3 +148,4 @@ module DnsOne; class Server
|
|
148
148
|
end
|
149
149
|
|
150
150
|
end; end
|
151
|
+
|
data/lib/dns_one/version.rb
CHANGED
data/util/sample_conf.yml
CHANGED
@@ -4,8 +4,8 @@ config:
|
|
4
4
|
ignore_subdomains: www en it es pt ru fr at # optional, defaults to an empty list
|
5
5
|
# cache_max: 100000 # optional, defaults to 10000
|
6
6
|
# log_file: /var/log/dns_one.log # optional, defaults to /var/log/dns_one.log
|
7
|
-
log_results: 0
|
8
7
|
save_stats: 0
|
8
|
+
log_result_file: 0
|
9
9
|
log_result_socket: 1
|
10
10
|
# log_result_socket_file: /tmp/dns_one_log_result.sock
|
11
11
|
|