rubydns 0.2.0 → 0.2.1

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.
@@ -2,8 +2,6 @@
2
2
  require 'eventmachine'
3
3
  require 'stringio'
4
4
 
5
- require 'rubydns/extensions/hexdump'
6
-
7
5
  module RubyDNS
8
6
 
9
7
  UDP_TRUNCATION_SIZE = 512
@@ -16,8 +14,6 @@ module RubyDNS
16
14
  def self.process(server, data, &block)
17
15
  server.logger.debug "Receiving incoming query..."
18
16
 
19
- server.logger.debug data.hexdump
20
-
21
17
  begin
22
18
  server.receive_data(data) do |answer|
23
19
  yield answer.encode
@@ -185,7 +185,7 @@ module RubyDNS
185
185
  if block_given?
186
186
  yield answer
187
187
  else
188
- return answer
188
+ answer.encode
189
189
  end
190
190
  end
191
191
  end
@@ -17,7 +17,7 @@ module RubyDNS
17
17
  module VERSION #:nodoc:
18
18
  MAJOR = 0
19
19
  MINOR = 2
20
- TINY = 0
20
+ TINY = 1
21
21
 
22
22
  STRING = [MAJOR, MINOR, TINY].join('.')
23
23
  end
@@ -32,6 +32,7 @@ require 'rubydns'
32
32
 
33
33
  # Test using the following command
34
34
  # dig @localhost test.mydomain.org
35
+ # dig +tcp @localhost test.mydomain.org
35
36
 
36
37
  # You might need to change the user name "daemon". This can be a user name or a user id.
37
38
  RUN_AS = "daemon"
@@ -494,3 +494,16 @@ D, [2011-04-13T01:29:08.422810 #3849] DEBUG -- : Query test.mydomain.org matched
494
494
  D, [2011-04-13T01:29:08.422971 #3849] DEBUG -- : Rule returned successfully
495
495
  === Error Log Opened @ Wed Apr 13 01:53:27 +1200 2011 ===
496
496
  I, [2011-04-13T01:53:27.060336 #3937] INFO -- : Starting server...
497
+ === Error Log Opened @ Wed Apr 13 01:54:16 +1200 2011 ===
498
+ I, [2011-04-13T01:54:16.360886 #3947] INFO -- : Starting server...
499
+ D, [2011-04-13T01:54:22.785782 #3947] DEBUG -- : Receiving incoming query...
500
+ D, [2011-04-13T01:54:22.786177 #3947] DEBUG -- : Size: 35
501
+ 000000: bbca 0100 0001 0000 0000 0000 0474 6573 |.............tes|
502
+ 000010: 7408 6d79 646f 6d61 696e 036f 7267 0000 |t.mydomain.org..|
503
+ 000020: 0100 0000 0000 0000 0000 0000 0000 0000 |...|
504
+
505
+ D, [2011-04-13T01:54:22.786454 #3947] DEBUG -- : Searching for test.mydomain.org A
506
+ D, [2011-04-13T01:54:22.786496 #3947] DEBUG -- : Checking rule ["test.mydomain.org", "A"]...
507
+ D, [2011-04-13T01:54:22.786528 #3947] DEBUG -- : Resource type A matched
508
+ D, [2011-04-13T01:54:22.786569 #3947] DEBUG -- : Query test.mydomain.org matched test.mydomain.org
509
+ D, [2011-04-13T01:54:22.787035 #3947] DEBUG -- : Rule returned successfully
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Samuel Williams
@@ -68,7 +68,6 @@ files:
68
68
  - test/example1.rb
69
69
  - test/log/Server/stderr.log
70
70
  - test/log/Server/stdout.log
71
- - test/run/Server/Server.pid
72
71
  - test/soa_example1.rb
73
72
  - test/test_domains.txt
74
73
  - bin/rd-dns-check
@@ -1 +0,0 @@
1
- 3937