rubydns 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rubydns/server.rb +10 -0
- data/lib/rubydns/version.rb +1 -1
- data/test/log/FortuneDNS/stderr.log +105 -0
- metadata +4 -4
data/lib/rubydns/server.rb
CHANGED
@@ -144,6 +144,16 @@ module RubyDNS
|
|
144
144
|
else
|
145
145
|
@logger.debug "Query #{name} failed to match against #{pattern[0]}"
|
146
146
|
end
|
147
|
+
when Proc
|
148
|
+
if pattern[0].call(name)
|
149
|
+
@logger.debug "Query #{name} matched #{pattern[0]}"
|
150
|
+
if rule[1].call(*args)
|
151
|
+
@logger.debug "Rule returned successfully"
|
152
|
+
return
|
153
|
+
end
|
154
|
+
else
|
155
|
+
@logger.debug "Query #{name} failed to match against #{pattern[0]}"
|
156
|
+
end
|
147
157
|
end
|
148
158
|
end
|
149
159
|
|
data/lib/rubydns/version.rb
CHANGED
@@ -4193,3 +4193,108 @@ I, [2011-04-20T05:02:09.064689 #1104] INFO -- : Resource class: Resolv::DNS::Re
|
|
4193
4193
|
I, [2011-04-20T05:02:09.064753 #1104] INFO -- : Resource: #<Resolv::DNS::Resource::IN::TXT:0x101081158 @strings=["Have you ever noticed that the people who are always trying to tell you `there's a time for work and a time for play' never find the time for play?"]>
|
4194
4194
|
I, [2011-04-20T05:02:09.064813 #1104] INFO -- : add_answer: #<Resolv::DNS::Resource::IN::TXT:0x101081158 @strings=["Have you ever noticed that the people who are always trying to tell you `there's a time for work and a time for play' never find the time for play?"]> 16 1
|
4195
4195
|
D, [2011-04-20T05:02:09.064937 #1104] DEBUG -- : Rule returned successfully
|
4196
|
+
D, [2011-04-20T11:50:11.358850 #1104] DEBUG -- : Receiving incoming query...
|
4197
|
+
D, [2011-04-20T11:50:11.359081 #1104] DEBUG -- : Searching for _xmppconnect.gmail.com TXT
|
4198
|
+
D, [2011-04-20T11:50:11.359128 #1104] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
|
4199
|
+
D, [2011-04-20T11:50:11.359173 #1104] DEBUG -- : Resource type TXT matched
|
4200
|
+
D, [2011-04-20T11:50:11.406650 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:(.*)\.fortune)
|
4201
|
+
D, [2011-04-20T11:50:11.406721 #1104] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
|
4202
|
+
D, [2011-04-20T11:50:11.406765 #1104] DEBUG -- : Resource type TXT matched
|
4203
|
+
D, [2011-04-20T11:50:11.406824 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:stats.fortune)
|
4204
|
+
D, [2011-04-20T11:50:11.406880 #1104] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
|
4205
|
+
D, [2011-04-20T11:50:16.473658 #1104] DEBUG -- : Receiving incoming query...
|
4206
|
+
D, [2011-04-20T11:50:16.473852 #1104] DEBUG -- : Searching for _xmppconnect.gmail.com TXT
|
4207
|
+
D, [2011-04-20T11:50:16.473896 #1104] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
|
4208
|
+
D, [2011-04-20T11:50:16.473929 #1104] DEBUG -- : Resource type TXT matched
|
4209
|
+
D, [2011-04-20T11:50:16.473963 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:(.*)\.fortune)
|
4210
|
+
D, [2011-04-20T11:50:16.473997 #1104] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
|
4211
|
+
D, [2011-04-20T11:50:16.474031 #1104] DEBUG -- : Resource type TXT matched
|
4212
|
+
D, [2011-04-20T11:50:16.474064 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:stats.fortune)
|
4213
|
+
D, [2011-04-20T11:50:16.474107 #1104] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
|
4214
|
+
D, [2011-04-20T11:50:21.896755 #1104] DEBUG -- : Receiving incoming query...
|
4215
|
+
D, [2011-04-20T11:50:21.896952 #1104] DEBUG -- : Searching for _xmppconnect.gmail.com TXT
|
4216
|
+
D, [2011-04-20T11:50:21.897000 #1104] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
|
4217
|
+
D, [2011-04-20T11:50:21.897050 #1104] DEBUG -- : Resource type TXT matched
|
4218
|
+
D, [2011-04-20T11:50:21.897101 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:(.*)\.fortune)
|
4219
|
+
D, [2011-04-20T11:50:21.897140 #1104] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
|
4220
|
+
D, [2011-04-20T11:50:21.897170 #1104] DEBUG -- : Resource type TXT matched
|
4221
|
+
D, [2011-04-20T11:50:21.897210 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:stats.fortune)
|
4222
|
+
D, [2011-04-20T11:50:21.897248 #1104] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
|
4223
|
+
D, [2011-04-20T11:50:31.324605 #1104] DEBUG -- : Receiving incoming query...
|
4224
|
+
D, [2011-04-20T11:50:31.324792 #1104] DEBUG -- : Searching for _xmppconnect.gmail.com TXT
|
4225
|
+
D, [2011-04-20T11:50:31.324835 #1104] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
|
4226
|
+
D, [2011-04-20T11:50:31.324874 #1104] DEBUG -- : Resource type TXT matched
|
4227
|
+
D, [2011-04-20T11:50:31.324909 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:(.*)\.fortune)
|
4228
|
+
D, [2011-04-20T11:50:31.324942 #1104] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
|
4229
|
+
D, [2011-04-20T11:50:31.324982 #1104] DEBUG -- : Resource type TXT matched
|
4230
|
+
D, [2011-04-20T11:50:31.325013 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:stats.fortune)
|
4231
|
+
D, [2011-04-20T11:50:31.325047 #1104] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
|
4232
|
+
D, [2011-04-20T13:21:04.676506 #1104] DEBUG -- : Receiving incoming query...
|
4233
|
+
E, [2011-04-20T13:21:04.676780 #1104] ERROR -- : Error processing request!
|
4234
|
+
E, [2011-04-20T13:21:04.676831 #1104] ERROR -- : Resolv::DNS::DecodeError: limit exceeded
|
4235
|
+
E, [2011-04-20T13:21:04.676865 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1398:in `get_string'
|
4236
|
+
E, [2011-04-20T13:21:04.676894 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1442:in `get_label'
|
4237
|
+
E, [2011-04-20T13:21:04.676924 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1435:in `get_labels'
|
4238
|
+
E, [2011-04-20T13:21:04.676951 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1413:in `get_name'
|
4239
|
+
E, [2011-04-20T13:21:04.676978 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1446:in `get_question'
|
4240
|
+
E, [2011-04-20T13:21:04.677014 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1329:in `decode'
|
4241
|
+
E, [2011-04-20T13:21:05.010839 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1328:in `each'
|
4242
|
+
E, [2011-04-20T13:21:05.010904 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1328:in `decode'
|
4243
|
+
E, [2011-04-20T13:21:05.010934 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1353:in `initialize'
|
4244
|
+
E, [2011-04-20T13:21:05.010961 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1317:in `new'
|
4245
|
+
E, [2011-04-20T13:21:05.010992 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1317:in `decode'
|
4246
|
+
E, [2011-04-20T13:21:05.011026 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rubydns-0.2.2/lib/rubydns/server.rb:160:in `receive_data'
|
4247
|
+
E, [2011-04-20T13:21:05.011053 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rubydns-0.2.2/lib/rubydns/handler.rb:18:in `process'
|
4248
|
+
E, [2011-04-20T13:21:05.011085 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rubydns-0.2.2/lib/rubydns/handler.rb:28:in `receive_data'
|
4249
|
+
E, [2011-04-20T13:21:05.011116 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
|
4250
|
+
E, [2011-04-20T13:21:05.011147 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
|
4251
|
+
E, [2011-04-20T13:21:05.011175 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rubydns-0.2.2/lib/rubydns.rb:60:in `run_server'
|
4252
|
+
E, [2011-04-20T13:21:05.011221 #1104] ERROR -- : ./fortune-dns.rb:48:in `run'
|
4253
|
+
E, [2011-04-20T13:21:05.011251 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:85:in `start'
|
4254
|
+
E, [2011-04-20T13:21:05.011281 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:83:in `initialize'
|
4255
|
+
E, [2011-04-20T13:21:05.011314 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:83:in `new'
|
4256
|
+
E, [2011-04-20T13:21:05.011346 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:83:in `start'
|
4257
|
+
E, [2011-04-20T13:21:05.011380 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:70:in `fork'
|
4258
|
+
E, [2011-04-20T13:21:05.011409 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:70:in `start'
|
4259
|
+
E, [2011-04-20T13:21:05.011436 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:41:in `daemonize'
|
4260
|
+
E, [2011-04-20T13:21:05.011464 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/base.rb:114:in `daemonize'
|
4261
|
+
E, [2011-04-20T13:21:05.011492 #1104] ERROR -- : ./fortune-dns.rb:87
|
4262
|
+
D, [2011-04-20T13:21:07.543109 #1104] DEBUG -- : Receiving incoming query...
|
4263
|
+
E, [2011-04-20T13:21:07.543308 #1104] ERROR -- : Error processing request!
|
4264
|
+
E, [2011-04-20T13:21:07.543349 #1104] ERROR -- : Resolv::DNS::DecodeError: limit exceeded
|
4265
|
+
E, [2011-04-20T13:21:07.543379 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1398:in `get_string'
|
4266
|
+
E, [2011-04-20T13:21:07.543409 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1442:in `get_label'
|
4267
|
+
E, [2011-04-20T13:21:07.543436 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1435:in `get_labels'
|
4268
|
+
E, [2011-04-20T13:21:07.543471 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1413:in `get_name'
|
4269
|
+
E, [2011-04-20T13:21:07.543501 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1446:in `get_question'
|
4270
|
+
E, [2011-04-20T13:21:07.543528 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1329:in `decode'
|
4271
|
+
E, [2011-04-20T13:21:07.543562 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1328:in `each'
|
4272
|
+
E, [2011-04-20T13:21:07.543821 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1328:in `decode'
|
4273
|
+
E, [2011-04-20T13:21:07.543853 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1353:in `initialize'
|
4274
|
+
E, [2011-04-20T13:21:07.543883 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1317:in `new'
|
4275
|
+
E, [2011-04-20T13:21:07.543911 #1104] ERROR -- : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/resolv.rb:1317:in `decode'
|
4276
|
+
E, [2011-04-20T13:21:07.543942 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rubydns-0.2.2/lib/rubydns/server.rb:160:in `receive_data'
|
4277
|
+
E, [2011-04-20T13:21:07.543969 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rubydns-0.2.2/lib/rubydns/handler.rb:18:in `process'
|
4278
|
+
E, [2011-04-20T13:21:07.544001 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rubydns-0.2.2/lib/rubydns/handler.rb:28:in `receive_data'
|
4279
|
+
E, [2011-04-20T13:21:07.544029 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
|
4280
|
+
E, [2011-04-20T13:21:07.544074 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
|
4281
|
+
E, [2011-04-20T13:21:07.544102 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rubydns-0.2.2/lib/rubydns.rb:60:in `run_server'
|
4282
|
+
E, [2011-04-20T13:21:07.544133 #1104] ERROR -- : ./fortune-dns.rb:48:in `run'
|
4283
|
+
E, [2011-04-20T13:21:07.544160 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:85:in `start'
|
4284
|
+
E, [2011-04-20T13:21:07.544190 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:83:in `initialize'
|
4285
|
+
E, [2011-04-20T13:21:07.544219 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:83:in `new'
|
4286
|
+
E, [2011-04-20T13:21:07.544247 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:83:in `start'
|
4287
|
+
E, [2011-04-20T13:21:07.544281 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:70:in `fork'
|
4288
|
+
E, [2011-04-20T13:21:07.544309 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:70:in `start'
|
4289
|
+
E, [2011-04-20T13:21:07.544336 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/controller.rb:41:in `daemonize'
|
4290
|
+
E, [2011-04-20T13:21:07.544364 #1104] ERROR -- : /Library/Ruby/Gems/1.8/gems/rexec-1.1.12/lib/rexec/daemon/base.rb:114:in `daemonize'
|
4291
|
+
E, [2011-04-20T13:21:07.544403 #1104] ERROR -- : ./fortune-dns.rb:87
|
4292
|
+
D, [2011-04-20T14:35:29.095043 #1104] DEBUG -- : Receiving incoming query...
|
4293
|
+
D, [2011-04-20T14:35:29.221579 #1104] DEBUG -- : Searching for _xmppconnect.gmail.com TXT
|
4294
|
+
D, [2011-04-20T14:35:29.283524 #1104] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
|
4295
|
+
D, [2011-04-20T14:35:29.283678 #1104] DEBUG -- : Resource type TXT matched
|
4296
|
+
D, [2011-04-20T14:35:29.283839 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:(.*)\.fortune)
|
4297
|
+
D, [2011-04-20T14:35:29.283891 #1104] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
|
4298
|
+
D, [2011-04-20T14:35:29.283937 #1104] DEBUG -- : Resource type TXT matched
|
4299
|
+
D, [2011-04-20T14:35:29.283984 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:stats.fortune)
|
4300
|
+
D, [2011-04-20T14:35:29.284034 #1104] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubydns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Samuel Williams
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-23 00:00:00 +12:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|