dnstraverse 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. data/LICENSE +674 -0
  2. data/README +4 -0
  3. data/Rakefile +19 -0
  4. data/a +44 -0
  5. data/bin/dnstraverse +300 -0
  6. data/doc.tar +0 -0
  7. data/doc/classes/DNSTraverse.html +198 -0
  8. data/doc/classes/DNSTraverse/CachingResolver.html +172 -0
  9. data/doc/classes/DNSTraverse/CachingResolver.src/M000055.html +21 -0
  10. data/doc/classes/DNSTraverse/CachingResolver.src/M000056.html +42 -0
  11. data/doc/classes/DNSTraverse/DecodedQuery.html +475 -0
  12. data/doc/classes/DNSTraverse/DecodedQuery.src/M000020.html +34 -0
  13. data/doc/classes/DNSTraverse/DecodedQuery.src/M000021.html +23 -0
  14. data/doc/classes/DNSTraverse/DecodedQuery.src/M000022.html +19 -0
  15. data/doc/classes/DNSTraverse/DecodedQuery.src/M000023.html +33 -0
  16. data/doc/classes/DNSTraverse/DecodedQuery.src/M000024.html +26 -0
  17. data/doc/classes/DNSTraverse/DecodedQuery.src/M000025.html +24 -0
  18. data/doc/classes/DNSTraverse/DecodedQuery.src/M000026.html +29 -0
  19. data/doc/classes/DNSTraverse/DecodedQuery.src/M000027.html +19 -0
  20. data/doc/classes/DNSTraverse/DecodedQuery.src/M000028.html +18 -0
  21. data/doc/classes/DNSTraverse/DecodedQuery.src/M000029.html +32 -0
  22. data/doc/classes/DNSTraverse/DecodedQuery.src/M000030.html +19 -0
  23. data/doc/classes/DNSTraverse/DecodedQuery.src/M000031.html +19 -0
  24. data/doc/classes/DNSTraverse/DecodedQuery.src/M000032.html +20 -0
  25. data/doc/classes/DNSTraverse/DecodedQuery.src/M000033.html +31 -0
  26. data/doc/classes/DNSTraverse/DecodedQueryCache.html +182 -0
  27. data/doc/classes/DNSTraverse/DecodedQueryCache.src/M000063.html +21 -0
  28. data/doc/classes/DNSTraverse/DecodedQueryCache.src/M000064.html +33 -0
  29. data/doc/classes/DNSTraverse/Fingerprint.html +277 -0
  30. data/doc/classes/DNSTraverse/Fingerprint.src/M000047.html +29 -0
  31. data/doc/classes/DNSTraverse/Fingerprint.src/M000048.html +18 -0
  32. data/doc/classes/DNSTraverse/Fingerprint.src/M000049.html +57 -0
  33. data/doc/classes/DNSTraverse/Fingerprint.src/M000050.html +28 -0
  34. data/doc/classes/DNSTraverse/Fingerprint.src/M000051.html +27 -0
  35. data/doc/classes/DNSTraverse/Fingerprint.src/M000052.html +35 -0
  36. data/doc/classes/DNSTraverse/Fingerprint.src/M000053.html +24 -0
  37. data/doc/classes/DNSTraverse/Fingerprint.src/M000054.html +29 -0
  38. data/doc/classes/DNSTraverse/InfoCache.html +235 -0
  39. data/doc/classes/DNSTraverse/InfoCache.src/M000034.html +20 -0
  40. data/doc/classes/DNSTraverse/InfoCache.src/M000035.html +23 -0
  41. data/doc/classes/DNSTraverse/InfoCache.src/M000036.html +28 -0
  42. data/doc/classes/DNSTraverse/InfoCache.src/M000037.html +25 -0
  43. data/doc/classes/DNSTraverse/InfoCache.src/M000038.html +27 -0
  44. data/doc/classes/DNSTraverse/InfoCache.src/M000039.html +33 -0
  45. data/doc/classes/DNSTraverse/MessageUtility.html +275 -0
  46. data/doc/classes/DNSTraverse/MessageUtility.src/M000011.html +35 -0
  47. data/doc/classes/DNSTraverse/MessageUtility.src/M000012.html +37 -0
  48. data/doc/classes/DNSTraverse/MessageUtility.src/M000013.html +28 -0
  49. data/doc/classes/DNSTraverse/MessageUtility.src/M000014.html +27 -0
  50. data/doc/classes/DNSTraverse/MessageUtility.src/M000015.html +30 -0
  51. data/doc/classes/DNSTraverse/MessageUtility.src/M000016.html +32 -0
  52. data/doc/classes/DNSTraverse/MessageUtility.src/M000017.html +34 -0
  53. data/doc/classes/DNSTraverse/MessageUtility.src/M000018.html +23 -0
  54. data/doc/classes/DNSTraverse/MessageUtility.src/M000019.html +36 -0
  55. data/doc/classes/DNSTraverse/Referral.html +641 -0
  56. data/doc/classes/DNSTraverse/Referral.src/M000065.html +22 -0
  57. data/doc/classes/DNSTraverse/Referral.src/M000066.html +21 -0
  58. data/doc/classes/DNSTraverse/Referral.src/M000067.html +23 -0
  59. data/doc/classes/DNSTraverse/Referral.src/M000068.html +19 -0
  60. data/doc/classes/DNSTraverse/Referral.src/M000069.html +18 -0
  61. data/doc/classes/DNSTraverse/Referral.src/M000070.html +54 -0
  62. data/doc/classes/DNSTraverse/Referral.src/M000071.html +25 -0
  63. data/doc/classes/DNSTraverse/Referral.src/M000072.html +27 -0
  64. data/doc/classes/DNSTraverse/Referral.src/M000073.html +23 -0
  65. data/doc/classes/DNSTraverse/Referral.src/M000074.html +20 -0
  66. data/doc/classes/DNSTraverse/Referral.src/M000075.html +40 -0
  67. data/doc/classes/DNSTraverse/Referral.src/M000076.html +52 -0
  68. data/doc/classes/DNSTraverse/Referral.src/M000077.html +29 -0
  69. data/doc/classes/DNSTraverse/Referral.src/M000078.html +54 -0
  70. data/doc/classes/DNSTraverse/Referral.src/M000079.html +18 -0
  71. data/doc/classes/DNSTraverse/Referral.src/M000080.html +22 -0
  72. data/doc/classes/DNSTraverse/Referral.src/M000081.html +20 -0
  73. data/doc/classes/DNSTraverse/Referral.src/M000082.html +29 -0
  74. data/doc/classes/DNSTraverse/Referral.src/M000083.html +28 -0
  75. data/doc/classes/DNSTraverse/Referral.src/M000084.html +29 -0
  76. data/doc/classes/DNSTraverse/Referral.src/M000085.html +55 -0
  77. data/doc/classes/DNSTraverse/Referral.src/M000086.html +30 -0
  78. data/doc/classes/DNSTraverse/Referral.src/M000087.html +24 -0
  79. data/doc/classes/DNSTraverse/Referral.src/M000088.html +20 -0
  80. data/doc/classes/DNSTraverse/Referral.src/M000089.html +58 -0
  81. data/doc/classes/DNSTraverse/ResolveError.html +111 -0
  82. data/doc/classes/DNSTraverse/Response.html +271 -0
  83. data/doc/classes/DNSTraverse/Response.src/M000057.html +27 -0
  84. data/doc/classes/DNSTraverse/Response.src/M000058.html +21 -0
  85. data/doc/classes/DNSTraverse/Response.src/M000059.html +19 -0
  86. data/doc/classes/DNSTraverse/Response.src/M000060.html +21 -0
  87. data/doc/classes/DNSTraverse/Response.src/M000061.html +31 -0
  88. data/doc/classes/DNSTraverse/Response.src/M000062.html +23 -0
  89. data/doc/classes/DNSTraverse/Response/NoGlue.html +222 -0
  90. data/doc/classes/DNSTraverse/Response/NoGlue.src/M000007.html +32 -0
  91. data/doc/classes/DNSTraverse/Response/NoGlue.src/M000008.html +18 -0
  92. data/doc/classes/DNSTraverse/Response/NoGlue.src/M000009.html +18 -0
  93. data/doc/classes/DNSTraverse/Response/NoGlue.src/M000010.html +18 -0
  94. data/doc/classes/DNSTraverse/Traverser.html +247 -0
  95. data/doc/classes/DNSTraverse/Traverser.src/M000040.html +17 -0
  96. data/doc/classes/DNSTraverse/Traverser.src/M000041.html +52 -0
  97. data/doc/classes/DNSTraverse/Traverser.src/M000042.html +61 -0
  98. data/doc/classes/DNSTraverse/Traverser.src/M000043.html +110 -0
  99. data/doc/classes/DNSTraverse/Traverser.src/M000044.html +63 -0
  100. data/doc/classes/DNSTraverse/Traverser.src/M000045.html +28 -0
  101. data/doc/classes/DNSTraverse/Traverser.src/M000046.html +18 -0
  102. data/doc/classes/FingerprintRules.html +175 -0
  103. data/doc/classes/Log.html +174 -0
  104. data/doc/classes/Log.src/M000002.html +18 -0
  105. data/doc/classes/Log.src/M000003.html +18 -0
  106. data/doc/classes/Log.src/M000004.html +18 -0
  107. data/doc/classes/Log/Formatter.html +165 -0
  108. data/doc/classes/Log/Formatter.src/M000005.html +22 -0
  109. data/doc/classes/Log/Formatter.src/M000006.html +24 -0
  110. data/doc/classes/TestFingerprint.html +137 -0
  111. data/doc/classes/TestFingerprint.src/M000001.html +22 -0
  112. data/doc/created.rid +1 -0
  113. data/doc/files/lib/dnstraverse/caching_resolver_rb.html +132 -0
  114. data/doc/files/lib/dnstraverse/decoded_query_cache_rb.html +132 -0
  115. data/doc/files/lib/dnstraverse/decoded_query_rb.html +132 -0
  116. data/doc/files/lib/dnstraverse/fingerprint_rb.html +134 -0
  117. data/doc/files/lib/dnstraverse/fingerprint_rules_rb.html +143 -0
  118. data/doc/files/lib/dnstraverse/info_cache_rb.html +131 -0
  119. data/doc/files/lib/dnstraverse/log_rb.html +131 -0
  120. data/doc/files/lib/dnstraverse/message_utility_rb.html +124 -0
  121. data/doc/files/lib/dnstraverse/referral_rb.html +134 -0
  122. data/doc/files/lib/dnstraverse/response_noglue_rb.html +124 -0
  123. data/doc/files/lib/dnstraverse/response_rb.html +132 -0
  124. data/doc/files/lib/dnstraverse/traverser_rb.html +137 -0
  125. data/doc/files/test/test_fingerprint_rb.html +133 -0
  126. data/doc/fr_class_index.html +43 -0
  127. data/doc/fr_file_index.html +39 -0
  128. data/doc/fr_method_index.html +115 -0
  129. data/doc/index.html +24 -0
  130. data/doc/rdoc-style.css +208 -0
  131. data/lib/dnstraverse/caching_resolver.rb +63 -0
  132. data/lib/dnstraverse/decoded_query.rb +199 -0
  133. data/lib/dnstraverse/decoded_query_cache.rb +53 -0
  134. data/lib/dnstraverse/fingerprint.rb +166 -0
  135. data/lib/dnstraverse/fingerprint_rules.rb +389 -0
  136. data/lib/dnstraverse/info_cache.rb +108 -0
  137. data/lib/dnstraverse/log.rb +55 -0
  138. data/lib/dnstraverse/message_utility.rb +199 -0
  139. data/lib/dnstraverse/referral.rb +463 -0
  140. data/lib/dnstraverse/response.rb +92 -0
  141. data/lib/dnstraverse/response_noglue.rb +54 -0
  142. data/lib/dnstraverse/traverser.rb +291 -0
  143. data/test/test_fingerprint.rb +29 -0
  144. metadata +231 -0
@@ -0,0 +1,172 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: DNSTraverse::CachingResolver</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">DNSTraverse::CachingResolver</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/dnstraverse/caching_resolver_rb.html">
59
+ lib/dnstraverse/caching_resolver.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Dnsruby::Resolver
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000055">new</a>&nbsp;&nbsp;
90
+ <a href="#M000056">query</a>&nbsp;&nbsp;
91
+ </div>
92
+ </div>
93
+
94
+ </div>
95
+
96
+
97
+ <!-- if includes -->
98
+
99
+ <div id="section">
100
+
101
+
102
+
103
+
104
+
105
+ <div id="attribute-list">
106
+ <h3 class="section-bar">Attributes</h3>
107
+
108
+ <div class="name-list">
109
+ <table>
110
+ <tr class="top-aligned-row context-row">
111
+ <td class="context-item-name">cache_hits</td>
112
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
113
+ <td class="context-item-desc"></td>
114
+ </tr>
115
+ <tr class="top-aligned-row context-row">
116
+ <td class="context-item-name">requests</td>
117
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
118
+ <td class="context-item-desc"></td>
119
+ </tr>
120
+ </table>
121
+ </div>
122
+ </div>
123
+
124
+
125
+
126
+ <!-- if method_list -->
127
+ <div id="methods">
128
+ <h3 class="section-bar">Public Class methods</h3>
129
+
130
+ <div id="method-M000055" class="method-detail">
131
+ <a name="M000055"></a>
132
+
133
+ <div class="method-heading">
134
+ <a href="CachingResolver.src/M000055.html" target="Code" class="method-signature"
135
+ onclick="popupCode('CachingResolver.src/M000055.html');return false;">
136
+ <span class="method-name">new</span><span class="method-args">(*args)</span>
137
+ </a>
138
+ </div>
139
+
140
+ <div class="method-description">
141
+ </div>
142
+ </div>
143
+
144
+ <h3 class="section-bar">Public Instance methods</h3>
145
+
146
+ <div id="method-M000056" class="method-detail">
147
+ <a name="M000056"></a>
148
+
149
+ <div class="method-heading">
150
+ <a href="CachingResolver.src/M000056.html" target="Code" class="method-signature"
151
+ onclick="popupCode('CachingResolver.src/M000056.html');return false;">
152
+ <span class="method-name">query</span><span class="method-args">(name, type, klass = Dnsruby::Classes.IN)</span>
153
+ </a>
154
+ </div>
155
+
156
+ <div class="method-description">
157
+ </div>
158
+ </div>
159
+
160
+
161
+ </div>
162
+
163
+
164
+ </div>
165
+
166
+
167
+ <div id="validator-badges">
168
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
169
+ </div>
170
+
171
+ </body>
172
+ </html>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (DNSTraverse::CachingResolver)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/dnstraverse/caching_resolver.rb, line 26</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
15
+ <span class="ruby-ivar">@cache</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
16
+ <span class="ruby-ivar">@requests</span> = <span class="ruby-value">0</span>
17
+ <span class="ruby-ivar">@cache_hits</span> = <span class="ruby-value">0</span>
18
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>query (DNSTraverse::CachingResolver)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/dnstraverse/caching_resolver.rb, line 33</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">klass</span> = <span class="ruby-constant">Dnsruby</span><span class="ruby-operator">::</span><span class="ruby-constant">Classes</span>.<span class="ruby-constant">IN</span>)
15
+ <span class="ruby-ivar">@requests</span><span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
16
+ <span class="ruby-identifier">ip</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">config</span>.<span class="ruby-identifier">nameserver</span>[<span class="ruby-value">0</span>]
17
+ <span class="ruby-identifier">udp_size</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">udp_size</span>
18
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">udp_size</span> = <span class="ruby-identifier">udp_size</span> <span class="ruby-comment cmt"># workaround for bug in dnsruby</span>
19
+ <span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-node">&quot;Querying #{name} to #{ip} class #{klass} type #{type}&quot;</span>}
20
+ <span class="ruby-identifier">key</span> = <span class="ruby-node">&quot;key:res:#{ip}:#{name}:#{klass}:#{type}:#{udp_size}&quot;</span>
21
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@cache</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>) <span class="ruby-keyword kw">then</span>
22
+ <span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-node">&quot;Cache hit: #{key}&quot;</span> }
23
+ <span class="ruby-ivar">@cache_hits</span><span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
24
+ <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@cache</span>[<span class="ruby-identifier">key</span>]
25
+ <span class="ruby-keyword kw">end</span>
26
+ <span class="ruby-identifier">answer</span> = <span class="ruby-keyword kw">nil</span>
27
+ <span class="ruby-keyword kw">begin</span>
28
+ <span class="ruby-identifier">msg</span> = <span class="ruby-constant">Dnsruby</span><span class="ruby-operator">::</span><span class="ruby-constant">Message</span>.<span class="ruby-identifier">new</span>
29
+ <span class="ruby-identifier">msg</span>.<span class="ruby-identifier">add_question</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">klass</span>)
30
+ <span class="ruby-identifier">q</span> = <span class="ruby-constant">Queue</span>.<span class="ruby-identifier">new</span>
31
+ <span class="ruby-identifier">send_async</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">q</span>)
32
+ <span class="ruby-identifier">id</span>, <span class="ruby-identifier">result</span>, <span class="ruby-identifier">error</span> = <span class="ruby-identifier">q</span>.<span class="ruby-identifier">pop</span>
33
+ <span class="ruby-identifier">answer</span> = <span class="ruby-identifier">result</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">error</span>
34
+ <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
35
+ <span class="ruby-identifier">answer</span> = <span class="ruby-constant">RuntimeError</span>.<span class="ruby-identifier">new</span> <span class="ruby-value str">&quot;Dnsruby failure: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>
36
+ <span class="ruby-keyword kw">end</span>
37
+ <span class="ruby-ivar">@cache</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">answer</span>
38
+ <span class="ruby-constant">Log</span>.<span class="ruby-identifier">debug</span> { <span class="ruby-node">&quot;Cache store: #{key}&quot;</span> }
39
+ <span class="ruby-ivar">@cache</span>[<span class="ruby-identifier">key</span>]
40
+ <span class="ruby-keyword kw">end</span></pre>
41
+ </body>
42
+ </html>
@@ -0,0 +1,475 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: DNSTraverse::DecodedQuery</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">DNSTraverse::DecodedQuery</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/dnstraverse/decoded_query_rb.html">
59
+ lib/dnstraverse/decoded_query.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000025">inside_bailiwick?</a>&nbsp;&nbsp;
90
+ <a href="#M000023">makequery_message</a>&nbsp;&nbsp;
91
+ <a href="#M000022">makequery_with_udpsize</a>&nbsp;&nbsp;
92
+ <a href="#M000020">new</a>&nbsp;&nbsp;
93
+ <a href="#M000026">process</a>&nbsp;&nbsp;
94
+ <a href="#M000030">process_answered</a>&nbsp;&nbsp;
95
+ <a href="#M000029">process_error</a>&nbsp;&nbsp;
96
+ <a href="#M000027">process_exception</a>&nbsp;&nbsp;
97
+ <a href="#M000031">process_nodata</a>&nbsp;&nbsp;
98
+ <a href="#M000032">process_referral</a>&nbsp;&nbsp;
99
+ <a href="#M000028">process_restart</a>&nbsp;&nbsp;
100
+ <a href="#M000024">query</a>&nbsp;&nbsp;
101
+ <a href="#M000033">to_s</a>&nbsp;&nbsp;
102
+ <a href="#M000021">warnings_add</a>&nbsp;&nbsp;
103
+ </div>
104
+ </div>
105
+
106
+ </div>
107
+
108
+
109
+ <!-- if includes -->
110
+ <div id="includes">
111
+ <h3 class="section-bar">Included Modules</h3>
112
+
113
+ <div id="includes-list">
114
+ <span class="include-name"><a href="MessageUtility.html">MessageUtility</a></span>
115
+ </div>
116
+ </div>
117
+
118
+ <div id="section">
119
+
120
+
121
+ <div id="constants-list">
122
+ <h3 class="section-bar">Constants</h3>
123
+
124
+ <div class="name-list">
125
+ <table summary="Constants">
126
+ <tr class="top-aligned-row context-row">
127
+ <td class="context-item-name">NOERROR</td>
128
+ <td>=</td>
129
+ <td class="context-item-value">Dnsruby::RCode.NOERROR</td>
130
+ </tr>
131
+ <tr class="top-aligned-row context-row">
132
+ <td class="context-item-name">NXDOMAIN</td>
133
+ <td>=</td>
134
+ <td class="context-item-value">Dnsruby::RCode.NXDOMAIN</td>
135
+ </tr>
136
+ </table>
137
+ </div>
138
+ </div>
139
+
140
+
141
+
142
+ <div id="attribute-list">
143
+ <h3 class="section-bar">Attributes</h3>
144
+
145
+ <div class="name-list">
146
+ <table>
147
+ <tr class="top-aligned-row context-row">
148
+ <td class="context-item-name">answers</td>
149
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
150
+ <td class="context-item-desc"></td>
151
+ </tr>
152
+ <tr class="top-aligned-row context-row">
153
+ <td class="context-item-name">auth_ns</td>
154
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
155
+ <td class="context-item-desc"></td>
156
+ </tr>
157
+ <tr class="top-aligned-row context-row">
158
+ <td class="context-item-name">auth_other</td>
159
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
160
+ <td class="context-item-desc"></td>
161
+ </tr>
162
+ <tr class="top-aligned-row context-row">
163
+ <td class="context-item-name">auth_soa</td>
164
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
165
+ <td class="context-item-desc"></td>
166
+ </tr>
167
+ <tr class="top-aligned-row context-row">
168
+ <td class="context-item-name">authoritynames</td>
169
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
170
+ <td class="context-item-desc"></td>
171
+ </tr>
172
+ <tr class="top-aligned-row context-row">
173
+ <td class="context-item-name">bailiwick</td>
174
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
175
+ <td class="context-item-desc"></td>
176
+ </tr>
177
+ <tr class="top-aligned-row context-row">
178
+ <td class="context-item-name">cacheable_bad</td>
179
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
180
+ <td class="context-item-desc"></td>
181
+ </tr>
182
+ <tr class="top-aligned-row context-row">
183
+ <td class="context-item-name">cacheable_good</td>
184
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
185
+ <td class="context-item-desc"></td>
186
+ </tr>
187
+ <tr class="top-aligned-row context-row">
188
+ <td class="context-item-name">endname</td>
189
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
190
+ <td class="context-item-desc"></td>
191
+ </tr>
192
+ <tr class="top-aligned-row context-row">
193
+ <td class="context-item-name">error_message</td>
194
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
195
+ <td class="context-item-desc"></td>
196
+ </tr>
197
+ <tr class="top-aligned-row context-row">
198
+ <td class="context-item-name">exception_message</td>
199
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
200
+ <td class="context-item-desc"></td>
201
+ </tr>
202
+ <tr class="top-aligned-row context-row">
203
+ <td class="context-item-name">infocache</td>
204
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
205
+ <td class="context-item-desc"></td>
206
+ </tr>
207
+ <tr class="top-aligned-row context-row">
208
+ <td class="context-item-name">ip</td>
209
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
210
+ <td class="context-item-desc"></td>
211
+ </tr>
212
+ <tr class="top-aligned-row context-row">
213
+ <td class="context-item-name">message</td>
214
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
215
+ <td class="context-item-desc"></td>
216
+ </tr>
217
+ <tr class="top-aligned-row context-row">
218
+ <td class="context-item-name">qclass</td>
219
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
220
+ <td class="context-item-desc"></td>
221
+ </tr>
222
+ <tr class="top-aligned-row context-row">
223
+ <td class="context-item-name">qname</td>
224
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
225
+ <td class="context-item-desc"></td>
226
+ </tr>
227
+ <tr class="top-aligned-row context-row">
228
+ <td class="context-item-name">qtype</td>
229
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
230
+ <td class="context-item-desc"></td>
231
+ </tr>
232
+ <tr class="top-aligned-row context-row">
233
+ <td class="context-item-name">status</td>
234
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
235
+ <td class="context-item-desc"></td>
236
+ </tr>
237
+ </table>
238
+ </div>
239
+ </div>
240
+
241
+
242
+
243
+ <!-- if method_list -->
244
+ <div id="methods">
245
+ <h3 class="section-bar">Public Class methods</h3>
246
+
247
+ <div id="method-M000020" class="method-detail">
248
+ <a name="M000020"></a>
249
+
250
+ <div class="method-heading">
251
+ <a href="DecodedQuery.src/M000020.html" target="Code" class="method-signature"
252
+ onclick="popupCode('DecodedQuery.src/M000020.html');return false;">
253
+ <span class="method-name">new</span><span class="method-args">(args)</span>
254
+ </a>
255
+ </div>
256
+
257
+ <div class="method-description">
258
+ <p>
259
+ attr_reader :stats_key
260
+ </p>
261
+ </div>
262
+ </div>
263
+
264
+ <h3 class="section-bar">Public Instance methods</h3>
265
+
266
+ <div id="method-M000025" class="method-detail">
267
+ <a name="M000025"></a>
268
+
269
+ <div class="method-heading">
270
+ <a href="DecodedQuery.src/M000025.html" target="Code" class="method-signature"
271
+ onclick="popupCode('DecodedQuery.src/M000025.html');return false;">
272
+ <span class="method-name">inside_bailiwick?</span><span class="method-args">(name)</span>
273
+ </a>
274
+ </div>
275
+
276
+ <div class="method-description">
277
+ <p>
278
+ # clean up the workings def cleanup
279
+ </p>
280
+ <pre>
281
+ @cacheable_good = @cacheable_bad = nil
282
+ @starters = @starters_bailiwick = nil
283
+ @auth_ns = @auth_soa = @auth_other = nil
284
+ </pre>
285
+ <p>
286
+ end
287
+ </p>
288
+ </div>
289
+ </div>
290
+
291
+ <div id="method-M000023" class="method-detail">
292
+ <a name="M000023"></a>
293
+
294
+ <div class="method-heading">
295
+ <a href="DecodedQuery.src/M000023.html" target="Code" class="method-signature"
296
+ onclick="popupCode('DecodedQuery.src/M000023.html');return false;">
297
+ <span class="method-name">makequery_message</span><span class="method-args">()</span>
298
+ </a>
299
+ </div>
300
+
301
+ <div class="method-description">
302
+ <p>
303
+ make a <a href="DecodedQuery.html#M000024">query</a> start with whatever
304
+ UDP size is configured in resolver fall-back to UDP size 512 if appropriate
305
+ </p>
306
+ </div>
307
+ </div>
308
+
309
+ <div id="method-M000022" class="method-detail">
310
+ <a name="M000022"></a>
311
+
312
+ <div class="method-heading">
313
+ <a href="DecodedQuery.src/M000022.html" target="Code" class="method-signature"
314
+ onclick="popupCode('DecodedQuery.src/M000022.html');return false;">
315
+ <span class="method-name">makequery_with_udpsize</span><span class="method-args">(udpsize)</span>
316
+ </a>
317
+ </div>
318
+
319
+ <div class="method-description">
320
+ </div>
321
+ </div>
322
+
323
+ <div id="method-M000026" class="method-detail">
324
+ <a name="M000026"></a>
325
+
326
+ <div class="method-heading">
327
+ <a href="DecodedQuery.src/M000026.html" target="Code" class="method-signature"
328
+ onclick="popupCode('DecodedQuery.src/M000026.html');return false;">
329
+ <span class="method-name">process</span><span class="method-args">()</span>
330
+ </a>
331
+ </div>
332
+
333
+ <div class="method-description">
334
+ </div>
335
+ </div>
336
+
337
+ <div id="method-M000030" class="method-detail">
338
+ <a name="M000030"></a>
339
+
340
+ <div class="method-heading">
341
+ <a href="DecodedQuery.src/M000030.html" target="Code" class="method-signature"
342
+ onclick="popupCode('DecodedQuery.src/M000030.html');return false;">
343
+ <span class="method-name">process_answered</span><span class="method-args">()</span>
344
+ </a>
345
+ </div>
346
+
347
+ <div class="method-description">
348
+ </div>
349
+ </div>
350
+
351
+ <div id="method-M000029" class="method-detail">
352
+ <a name="M000029"></a>
353
+
354
+ <div class="method-heading">
355
+ <a href="DecodedQuery.src/M000029.html" target="Code" class="method-signature"
356
+ onclick="popupCode('DecodedQuery.src/M000029.html');return false;">
357
+ <span class="method-name">process_error</span><span class="method-args">()</span>
358
+ </a>
359
+ </div>
360
+
361
+ <div class="method-description">
362
+ </div>
363
+ </div>
364
+
365
+ <div id="method-M000027" class="method-detail">
366
+ <a name="M000027"></a>
367
+
368
+ <div class="method-heading">
369
+ <a href="DecodedQuery.src/M000027.html" target="Code" class="method-signature"
370
+ onclick="popupCode('DecodedQuery.src/M000027.html');return false;">
371
+ <span class="method-name">process_exception</span><span class="method-args">()</span>
372
+ </a>
373
+ </div>
374
+
375
+ <div class="method-description">
376
+ </div>
377
+ </div>
378
+
379
+ <div id="method-M000031" class="method-detail">
380
+ <a name="M000031"></a>
381
+
382
+ <div class="method-heading">
383
+ <a href="DecodedQuery.src/M000031.html" target="Code" class="method-signature"
384
+ onclick="popupCode('DecodedQuery.src/M000031.html');return false;">
385
+ <span class="method-name">process_nodata</span><span class="method-args">()</span>
386
+ </a>
387
+ </div>
388
+
389
+ <div class="method-description">
390
+ </div>
391
+ </div>
392
+
393
+ <div id="method-M000032" class="method-detail">
394
+ <a name="M000032"></a>
395
+
396
+ <div class="method-heading">
397
+ <a href="DecodedQuery.src/M000032.html" target="Code" class="method-signature"
398
+ onclick="popupCode('DecodedQuery.src/M000032.html');return false;">
399
+ <span class="method-name">process_referral</span><span class="method-args">()</span>
400
+ </a>
401
+ </div>
402
+
403
+ <div class="method-description">
404
+ </div>
405
+ </div>
406
+
407
+ <div id="method-M000028" class="method-detail">
408
+ <a name="M000028"></a>
409
+
410
+ <div class="method-heading">
411
+ <a href="DecodedQuery.src/M000028.html" target="Code" class="method-signature"
412
+ onclick="popupCode('DecodedQuery.src/M000028.html');return false;">
413
+ <span class="method-name">process_restart</span><span class="method-args">()</span>
414
+ </a>
415
+ </div>
416
+
417
+ <div class="method-description">
418
+ </div>
419
+ </div>
420
+
421
+ <div id="method-M000024" class="method-detail">
422
+ <a name="M000024"></a>
423
+
424
+ <div class="method-heading">
425
+ <a href="DecodedQuery.src/M000024.html" target="Code" class="method-signature"
426
+ onclick="popupCode('DecodedQuery.src/M000024.html');return false;">
427
+ <span class="method-name">query</span><span class="method-args">()</span>
428
+ </a>
429
+ </div>
430
+
431
+ <div class="method-description">
432
+ </div>
433
+ </div>
434
+
435
+ <div id="method-M000033" class="method-detail">
436
+ <a name="M000033"></a>
437
+
438
+ <div class="method-heading">
439
+ <a href="DecodedQuery.src/M000033.html" target="Code" class="method-signature"
440
+ onclick="popupCode('DecodedQuery.src/M000033.html');return false;">
441
+ <span class="method-name">to_s</span><span class="method-args">()</span>
442
+ </a>
443
+ </div>
444
+
445
+ <div class="method-description">
446
+ </div>
447
+ </div>
448
+
449
+ <div id="method-M000021" class="method-detail">
450
+ <a name="M000021"></a>
451
+
452
+ <div class="method-heading">
453
+ <a href="DecodedQuery.src/M000021.html" target="Code" class="method-signature"
454
+ onclick="popupCode('DecodedQuery.src/M000021.html');return false;">
455
+ <span class="method-name">warnings_add</span><span class="method-args">(warning)</span>
456
+ </a>
457
+ </div>
458
+
459
+ <div class="method-description">
460
+ </div>
461
+ </div>
462
+
463
+
464
+ </div>
465
+
466
+
467
+ </div>
468
+
469
+
470
+ <div id="validator-badges">
471
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
472
+ </div>
473
+
474
+ </body>
475
+ </html>