rubydns 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rubydns/handler.rb +17 -8
- data/lib/rubydns/server.rb +2 -2
- data/lib/rubydns/transaction.rb +54 -16
- data/lib/rubydns/version.rb +1 -1
- data/test/fortune-dns.rb +87 -0
- data/test/log/FortuneDNS/stderr.log +4195 -0
- data/test/log/FortuneDNS/stdout.log +0 -0
- data/test/log/Server/stderr.log +14 -0
- data/test/run/FortuneDNS/FortuneDNS.pid +1 -0
- data/test/soa_example1.rb +1 -1
- metadata +8 -4
File without changes
|
data/test/log/Server/stderr.log
CHANGED
@@ -507,3 +507,17 @@ D, [2011-04-13T01:54:22.786496 #3947] DEBUG -- : Checking rule ["test.mydomain.o
|
|
507
507
|
D, [2011-04-13T01:54:22.786528 #3947] DEBUG -- : Resource type A matched
|
508
508
|
D, [2011-04-13T01:54:22.786569 #3947] DEBUG -- : Query test.mydomain.org matched test.mydomain.org
|
509
509
|
D, [2011-04-13T01:54:22.787035 #3947] DEBUG -- : Rule returned successfully
|
510
|
+
=== Error Log Opened @ Wed Apr 20 01:48:02 +1200 2011 ===
|
511
|
+
I, [2011-04-20T01:48:02.069369 #99755] INFO -- : Starting server...
|
512
|
+
D, [2011-04-20T01:48:18.638894 #99755] DEBUG -- : Receiving incoming query...
|
513
|
+
D, [2011-04-20T01:48:18.639419 #99755] DEBUG -- : Searching for test.mydomain.org A
|
514
|
+
D, [2011-04-20T01:48:18.639458 #99755] DEBUG -- : Checking rule ["test.mydomain.org", "A"]...
|
515
|
+
D, [2011-04-20T01:48:18.639491 #99755] DEBUG -- : Resource type A matched
|
516
|
+
D, [2011-04-20T01:48:18.639526 #99755] DEBUG -- : Query test.mydomain.org matched test.mydomain.org
|
517
|
+
D, [2011-04-20T01:48:18.640143 #99755] DEBUG -- : Rule returned successfully
|
518
|
+
D, [2011-04-20T01:48:23.707464 #99755] DEBUG -- : Receiving incoming query...
|
519
|
+
D, [2011-04-20T01:48:23.707741 #99755] DEBUG -- : Searching for test.mydomain.org A
|
520
|
+
D, [2011-04-20T01:48:23.707817 #99755] DEBUG -- : Checking rule ["test.mydomain.org", "A"]...
|
521
|
+
D, [2011-04-20T01:48:23.707872 #99755] DEBUG -- : Resource type A matched
|
522
|
+
D, [2011-04-20T01:48:23.707925 #99755] DEBUG -- : Query test.mydomain.org matched test.mydomain.org
|
523
|
+
D, [2011-04-20T01:48:23.708198 #99755] DEBUG -- : Rule returned successfully
|
@@ -0,0 +1 @@
|
|
1
|
+
1104
|
data/test/soa_example1.rb
CHANGED
@@ -59,7 +59,7 @@ RubyDNS::run_server(:listen => [[:udp, "0.0.0.0", 5300]]) do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
match("www.mydomain.org", :A) do |transaction|
|
62
|
-
transaction.respond!("10.0.0.80"
|
62
|
+
transaction.respond!("10.0.0.80")
|
63
63
|
end
|
64
64
|
|
65
65
|
match("ns.mydomain.org", :A) do |transaction|
|
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: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
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-04-
|
18
|
+
date: 2011-04-20 00:00:00 +12:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -66,8 +66,12 @@ files:
|
|
66
66
|
- test/daemon1.rb
|
67
67
|
- test/daemon2.rb
|
68
68
|
- test/example1.rb
|
69
|
+
- test/fortune-dns.rb
|
70
|
+
- test/log/FortuneDNS/stderr.log
|
71
|
+
- test/log/FortuneDNS/stdout.log
|
69
72
|
- test/log/Server/stderr.log
|
70
73
|
- test/log/Server/stdout.log
|
74
|
+
- test/run/FortuneDNS/FortuneDNS.pid
|
71
75
|
- test/soa_example1.rb
|
72
76
|
- test/test_domains.txt
|
73
77
|
- bin/rd-dns-check
|