dnsruby 1.33 → 1.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- Fri, 10 Jul 2009 15:10:56 +0100
1
+ Fri, 17 Jul 2009 08:37:53 +0100
@@ -20,64 +20,64 @@
20
20
  <div id="index">
21
21
  <h1 class="section-bar">Methods</h1>
22
22
  <div id="index-entries">
23
- <a href="classes/Dnsruby/Name/Label.html#M000142"><=> (Dnsruby::Name::Label)</a><br />
24
- <a href="classes/Dnsruby/RRSet.html#M000234"><=> (Dnsruby::RRSet)</a><br />
25
23
  <a href="classes/Dnsruby/Name.html#M000132"><=> (Dnsruby::Name)</a><br />
24
+ <a href="classes/Dnsruby/RRSet.html#M000234"><=> (Dnsruby::RRSet)</a><br />
25
+ <a href="classes/Dnsruby/Name/Label.html#M000142"><=> (Dnsruby::Name::Label)</a><br />
26
26
  <a href="classes/Dnsruby/IPv4.html#M000225">== (Dnsruby::IPv4)</a><br />
27
27
  <a href="classes/Dnsruby/Header.html#M000260">== (Dnsruby::Header)</a><br />
28
- <a href="classes/Dnsruby/RR.html#M000013">== (Dnsruby::RR)</a><br />
29
- <a href="classes/Dnsruby/Message/Section.html#M000176">== (Dnsruby::Message::Section)</a><br />
30
28
  <a href="classes/Dnsruby/Name/Label.html#M000143">== (Dnsruby::Name::Label)</a><br />
31
- <a href="classes/Dnsruby/RRSet.html#M000236">== (Dnsruby::RRSet)</a><br />
32
29
  <a href="classes/Dnsruby/Message.html#M000148">== (Dnsruby::Message)</a><br />
30
+ <a href="classes/Dnsruby/Message/Section.html#M000176">== (Dnsruby::Message::Section)</a><br />
31
+ <a href="classes/Dnsruby/RR.html#M000013">== (Dnsruby::RR)</a><br />
32
+ <a href="classes/Dnsruby/RRSet.html#M000236">== (Dnsruby::RRSet)</a><br />
33
33
  <a href="classes/Dnsruby/RRSet.html#M000239">[] (Dnsruby::RRSet)</a><br />
34
34
  <a href="classes/Dnsruby/Update.html#M000297">absent (Dnsruby::Update)</a><br />
35
35
  <a href="classes/Dnsruby/Name.html#M000129">absolute? (Dnsruby::Name)</a><br />
36
- <a href="classes/Dnsruby/RRSet.html#M000233">add (Dnsruby::RRSet)</a><br />
37
36
  <a href="classes/Dnsruby/Update.html#M000298">add (Dnsruby::Update)</a><br />
37
+ <a href="classes/Dnsruby/RRSet.html#M000233">add (Dnsruby::RRSet)</a><br />
38
38
  <a href="classes/Dnsruby/Dnssec.html#M000273">add_dlv_key (Dnsruby::Dnssec)</a><br />
39
39
  <a href="classes/Dnsruby/Config.html#M000191">add_nameserver (Dnsruby::Config)</a><br />
40
40
  <a href="classes/Dnsruby/SingleResolver.html#M000214">add_opt_rr (Dnsruby::SingleResolver)</a><br />
41
41
  <a href="classes/Dnsruby/Message.html#M000152">add_question (Dnsruby::Message)</a><br />
42
- <a href="classes/Dnsruby/Resolver.html#M000333">add_src_port (Dnsruby::Resolver)</a><br />
42
+ <a href="classes/Dnsruby/Resolver.html#M000334">add_src_port (Dnsruby::Resolver)</a><br />
43
43
  <a href="classes/Dnsruby/Dnssec.html#M000274">add_trust_anchor (Dnsruby::Dnssec)</a><br />
44
44
  <a href="classes/Dnsruby/Dnssec.html#M000275">add_trust_anchor_with_expiration (Dnsruby::Dnssec)</a><br />
45
45
  <a href="classes/Dnsruby/RR/NSEC3.html#M000101">add_type (Dnsruby::RR::NSEC3)</a><br />
46
46
  <a href="classes/Dnsruby/RR/NSEC.html#M000038">add_type (Dnsruby::RR::NSEC)</a><br />
47
47
  <a href="classes/Dnsruby/Message.html#M000168">add_zone (Dnsruby::Message)</a><br />
48
- <a href="classes/Dnsruby/RR/RRSIG.html#M000119">algorithm= (Dnsruby::RR::RRSIG)</a><br />
49
48
  <a href="classes/Dnsruby/RR/DNSKEY.html#M000052">algorithm= (Dnsruby::RR::DNSKEY)</a><br />
50
49
  <a href="classes/Dnsruby/RR/DS.html#M000045">algorithm= (Dnsruby::RR::DS)</a><br />
51
50
  <a href="classes/Dnsruby/RR/TSIG.html#M000082">algorithm= (Dnsruby::RR::TSIG)</a><br />
51
+ <a href="classes/Dnsruby/RR/RRSIG.html#M000119">algorithm= (Dnsruby::RR::RRSIG)</a><br />
52
52
  <a href="classes/Dnsruby/Dnssec.html#M000291">anchor_verifier (Dnsruby::Dnssec)</a><br />
53
53
  <a href="classes/Dnsruby/RR/TSIG.html#M000076">apply (Dnsruby::RR::TSIG)</a><br />
54
- <a href="classes/Dnsruby/RR/NSEC3.html#M000098">calculate_hash (Dnsruby::RR::NSEC3)</a><br />
55
54
  <a href="classes/Dnsruby/RR/NSEC3.html#M000097">calculate_hash (Dnsruby::RR::NSEC3)</a><br />
55
+ <a href="classes/Dnsruby/RR/NSEC3.html#M000098">calculate_hash (Dnsruby::RR::NSEC3)</a><br />
56
56
  <a href="classes/Dnsruby/RR/TSIG.html#M000077">calculate_mac (Dnsruby::RR::TSIG)</a><br />
57
57
  <a href="classes/Dnsruby/Name.html#M000131">canonical (Dnsruby::Name)</a><br />
58
58
  <a href="classes/Dnsruby/Name.html#M000133">canonically_before (Dnsruby::Name)</a><br />
59
59
  <a href="classes/Dnsruby/RR/DS.html#M000047">check_key (Dnsruby::RR::DS)</a><br />
60
- <a href="classes/Dnsruby/RR/NSEC.html#M000034">check_name_in_range (Dnsruby::RR::NSEC)</a><br />
61
60
  <a href="classes/Dnsruby/RR/NSEC3.html#M000095">check_name_in_range (Dnsruby::RR::NSEC3)</a><br />
62
- <a href="classes/Dnsruby/RR/NSEC.html#M000035">check_name_in_wildcard_range (Dnsruby::RR::NSEC)</a><br />
61
+ <a href="classes/Dnsruby/RR/NSEC.html#M000034">check_name_in_range (Dnsruby::RR::NSEC)</a><br />
63
62
  <a href="classes/Dnsruby/RR/NSEC3.html#M000096">check_name_in_wildcard_range (Dnsruby::RR::NSEC3)</a><br />
64
- <a href="classes/Dnsruby/Resolver.html#M000334">check_port (Dnsruby::Resolver)</a><br />
63
+ <a href="classes/Dnsruby/RR/NSEC.html#M000035">check_name_in_wildcard_range (Dnsruby::RR::NSEC)</a><br />
64
+ <a href="classes/Dnsruby/Resolver.html#M000335">check_port (Dnsruby::Resolver)</a><br />
65
65
  <a href="classes/Dnsruby/Recursor.html#M000305">clear_caches (Dnsruby::Recursor)</a><br />
66
66
  <a href="classes/Dnsruby/Dnssec.html#M000277">clear_trust_anchors (Dnsruby::Dnssec)</a><br />
67
67
  <a href="classes/Dnsruby/Dnssec.html#M000279">clear_trusted_keys (Dnsruby::Dnssec)</a><br />
68
68
  <a href="classes/Dnsruby/Resolver.html#M000325">close (Dnsruby::Resolver)</a><br />
69
69
  <a href="classes/Dnsruby/DNS.html#M000309">close (Dnsruby::DNS)</a><br />
70
- <a href="classes/Dnsruby/IPv6.html#M000264">create (Dnsruby::IPv6)</a><br />
71
70
  <a href="classes/Dnsruby/IPv4.html#M000223">create (Dnsruby::IPv4)</a><br />
71
+ <a href="classes/Dnsruby/IPv6.html#M000264">create (Dnsruby::IPv6)</a><br />
72
72
  <a href="classes/Dnsruby/Name.html#M000126">create (Dnsruby::Name)</a><br />
73
73
  <a href="classes/Dnsruby/RR.html#M000014">create (Dnsruby::RR)</a><br />
74
74
  <a href="classes/Dnsruby/Header.html#M000257">data (Dnsruby::Header)</a><br />
75
75
  <a href="classes/Dnsruby/RR/TXT.html#M000069">data (Dnsruby::RR::TXT)</a><br />
76
76
  <a href="classes/Dnsruby/Header.html#M000263">decode (Dnsruby::Header)</a><br />
77
77
  <a href="classes/Dnsruby/Message.html#M000167">decode (Dnsruby::Message)</a><br />
78
- <a href="classes/Base32.html#M000349">decode32hex (Base32)</a><br />
79
- <a href="classes/Dnsruby/RR/NSEC3.html#M000110">decode_next_hashed (Dnsruby::RR::NSEC3)</a><br />
78
+ <a href="classes/Base32.html#M000350">decode32hex (Base32)</a><br />
80
79
  <a href="classes/Dnsruby/RR/NSEC3.html#M000109">decode_next_hashed (Dnsruby::RR::NSEC3)</a><br />
80
+ <a href="classes/Dnsruby/RR/NSEC3.html#M000110">decode_next_hashed (Dnsruby::RR::NSEC3)</a><br />
81
81
  <a href="classes/Dnsruby/RR/NSEC3.html#M000107">decode_salt (Dnsruby::RR::NSEC3)</a><br />
82
82
  <a href="classes/Dnsruby/RR/NSEC.html#M000039">decode_types (Dnsruby::RR::NSEC)</a><br />
83
83
  <a href="classes/Dnsruby/Header.html#M000259">decrement_arcount_encoded (Dnsruby::Header)</a><br />
@@ -89,7 +89,7 @@
89
89
  <a href="classes/Dnsruby/RR/DS.html#M000043">digest_type= (Dnsruby::RR::DS)</a><br />
90
90
  <a href="classes/Dnsruby/Dnssec.html#M000292">dlv_verifier (Dnsruby::Dnssec)</a><br />
91
91
  <a href="classes/Dnsruby/RR/LOC.html#M000028">dms2latlon (Dnsruby::RR::LOC)</a><br />
92
- <a href="classes/Dnsruby/Resolver.html#M000346">dnssec= (Dnsruby::Resolver)</a><br />
92
+ <a href="classes/Dnsruby/Resolver.html#M000347">dnssec= (Dnsruby::Resolver)</a><br />
93
93
  <a href="classes/Dnsruby/Dnssec.html#M000281">do_validation_with_recursor (Dnsruby::Dnssec)</a><br />
94
94
  <a href="classes/Dnsruby/Dnssec.html#M000282">do_validation_with_recursor? (Dnsruby::Dnssec)</a><br />
95
95
  <a href="classes/Dnsruby/Config.html#M000195">domain (Dnsruby::Config)</a><br />
@@ -100,8 +100,8 @@
100
100
  <a href="classes/Dnsruby/RR/NSAP.html#M000115">dsp (Dnsruby::RR::NSAP)</a><br />
101
101
  <a href="classes/Dnsruby/RRSet.html#M000238">each (Dnsruby::RRSet)</a><br />
102
102
  <a href="classes/Dnsruby/Message.html#M000156">each_additional (Dnsruby::Message)</a><br />
103
- <a href="classes/Dnsruby/Resolv.html#M000206">each_address (Dnsruby::Resolv)</a><br />
104
103
  <a href="classes/Dnsruby/Resolv.html#M000199">each_address (Dnsruby::Resolv)</a><br />
104
+ <a href="classes/Dnsruby/Resolv.html#M000206">each_address (Dnsruby::Resolv)</a><br />
105
105
  <a href="classes/Dnsruby/DNS.html#M000314">each_address (Dnsruby::DNS)</a><br />
106
106
  <a href="classes/Dnsruby/Hosts.html#M000219">each_address (Dnsruby::Hosts)</a><br />
107
107
  <a href="classes/Dnsruby/Message.html#M000154">each_answer (Dnsruby::Message)</a><br />
@@ -113,88 +113,88 @@
113
113
  <a href="classes/Dnsruby/Message.html#M000170">each_pre (Dnsruby::Message)</a><br />
114
114
  <a href="classes/Dnsruby/Message.html#M000171">each_prerequisite (Dnsruby::Message)</a><br />
115
115
  <a href="classes/Dnsruby/Message.html#M000153">each_question (Dnsruby::Message)</a><br />
116
- <a href="classes/Dnsruby/DNS.html#M000320">each_resource (Dnsruby::DNS)</a><br />
117
116
  <a href="classes/Dnsruby/Message.html#M000158">each_resource (Dnsruby::Message)</a><br />
117
+ <a href="classes/Dnsruby/DNS.html#M000320">each_resource (Dnsruby::DNS)</a><br />
118
118
  <a href="classes/Dnsruby/Message.html#M000157">each_section (Dnsruby::Message)</a><br />
119
119
  <a href="classes/Dnsruby/Message.html#M000172">each_update (Dnsruby::Message)</a><br />
120
120
  <a href="classes/Dnsruby/Message.html#M000169">each_zone (Dnsruby::Message)</a><br />
121
- <a href="classes/Dnsruby/Header.html#M000258">encode (Dnsruby::Header)</a><br />
122
121
  <a href="classes/Dnsruby/Message.html#M000166">encode (Dnsruby::Message)</a><br />
123
- <a href="classes/Base32.html#M000348">encode32hex (Base32)</a><br />
122
+ <a href="classes/Dnsruby/Header.html#M000258">encode (Dnsruby::Header)</a><br />
123
+ <a href="classes/Base32.html#M000349">encode32hex (Base32)</a><br />
124
124
  <a href="classes/Dnsruby/RR/NSEC3.html#M000111">encode_next_hashed (Dnsruby::RR::NSEC3)</a><br />
125
125
  <a href="classes/Dnsruby/RR/NSEC3.html#M000112">encode_next_hashed (Dnsruby::RR::NSEC3)</a><br />
126
126
  <a href="classes/Dnsruby/RR/NSEC3.html#M000108">encode_salt (Dnsruby::RR::NSEC3)</a><br />
127
- <a href="classes/Dnsruby/RR/NSEC.html#M000041">encode_types (Dnsruby::RR::NSEC)</a><br />
128
127
  <a href="classes/Dnsruby/RR/NSEC.html#M000040">encode_types (Dnsruby::RR::NSEC)</a><br />
128
+ <a href="classes/Dnsruby/RR/NSEC.html#M000041">encode_types (Dnsruby::RR::NSEC)</a><br />
129
129
  <a href="classes/Dnsruby/IPv4.html#M000226">eql? (Dnsruby::IPv4)</a><br />
130
130
  <a href="classes/Dnsruby/Name/Label.html#M000144">eql? (Dnsruby::Name::Label)</a><br />
131
- <a href="classes/Dnsruby/RR/NSEC3.html#M000102">flags= (Dnsruby::RR::NSEC3)</a><br />
132
- <a href="classes/Dnsruby/RR/NSEC3PARAM.html#M000089">flags= (Dnsruby::RR::NSEC3PARAM)</a><br />
133
131
  <a href="classes/Dnsruby/RR/DNSKEY.html#M000059">flags= (Dnsruby::RR::DNSKEY)</a><br />
132
+ <a href="classes/Dnsruby/RR/NSEC3PARAM.html#M000089">flags= (Dnsruby::RR::NSEC3PARAM)</a><br />
133
+ <a href="classes/Dnsruby/RR/NSEC3.html#M000102">flags= (Dnsruby::RR::NSEC3)</a><br />
134
134
  <a href="classes/Dnsruby/RR/RRSIG.html#M000124">format_time (Dnsruby::RR::RRSIG)</a><br />
135
135
  <a href="classes/Dnsruby/RR/X25.html#M000066">from_data (Dnsruby::RR::X25)</a><br />
136
136
  <a href="classes/Dnsruby/RR/TXT.html#M000070">from_data (Dnsruby::RR::TXT)</a><br />
137
137
  <a href="classes/Dnsruby/RR/TKEY.html#M000025">from_hash (Dnsruby::RR::TKEY)</a><br />
138
- <a href="classes/Dnsruby/RR/RP.html#M000091">from_hash (Dnsruby::RR::RP)</a><br />
139
- <a href="classes/Dnsruby/RR/IN/A.html#M000019">from_hash (Dnsruby::RR::IN::A)</a><br />
140
138
  <a href="classes/Dnsruby/RR/SOA.html#M000074">from_hash (Dnsruby::RR::SOA)</a><br />
139
+ <a href="classes/Dnsruby/RR/IN/A.html#M000019">from_hash (Dnsruby::RR::IN::A)</a><br />
140
+ <a href="classes/Dnsruby/RR/RP.html#M000091">from_hash (Dnsruby::RR::RP)</a><br />
141
141
  <a href="classes/Dnsruby/RR/TXT.html#M000071">from_hash (Dnsruby::RR::TXT)</a><br />
142
142
  <a href="classes/Dnsruby/RR/IN/SRV.html#M000016">from_hash (Dnsruby::RR::IN::SRV)</a><br />
143
143
  <a href="classes/Dnsruby/RR/DS.html#M000048">from_key (Dnsruby::RR::DS)</a><br />
144
- <a href="classes/Dnsruby/RR/IN/A.html#M000020">from_string (Dnsruby::RR::IN::A)</a><br />
145
- <a href="classes/Dnsruby/RR/IN/SRV.html#M000017">from_string (Dnsruby::RR::IN::SRV)</a><br />
146
144
  <a href="classes/Dnsruby/RR/DS.html#M000049">from_string (Dnsruby::RR::DS)</a><br />
147
- <a href="classes/Dnsruby/RR/TXT.html#M000072">from_string (Dnsruby::RR::TXT)</a><br />
148
145
  <a href="classes/Dnsruby/RR/RRSIG.html#M000122">from_string (Dnsruby::RR::RRSIG)</a><br />
149
- <a href="classes/Dnsruby/RR/NSEC3.html#M000113">from_string (Dnsruby::RR::NSEC3)</a><br />
150
- <a href="classes/Dnsruby/RR/DNSKEY.html#M000060">from_string (Dnsruby::RR::DNSKEY)</a><br />
151
146
  <a href="classes/Dnsruby/RR/SOA.html#M000075">from_string (Dnsruby::RR::SOA)</a><br />
152
147
  <a href="classes/Dnsruby/RR/NSEC.html#M000042">from_string (Dnsruby::RR::NSEC)</a><br />
148
+ <a href="classes/Dnsruby/RR/NSEC3.html#M000113">from_string (Dnsruby::RR::NSEC3)</a><br />
149
+ <a href="classes/Dnsruby/RR/IN/SRV.html#M000017">from_string (Dnsruby::RR::IN::SRV)</a><br />
150
+ <a href="classes/Dnsruby/RR/TXT.html#M000072">from_string (Dnsruby::RR::TXT)</a><br />
153
151
  <a href="classes/Dnsruby/RR/X25.html#M000067">from_string (Dnsruby::RR::X25)</a><br />
154
152
  <a href="classes/Dnsruby/RR/NSEC3PARAM.html#M000090">from_string (Dnsruby::RR::NSEC3PARAM)</a><br />
153
+ <a href="classes/Dnsruby/RR/IN/A.html#M000020">from_string (Dnsruby::RR::IN::A)</a><br />
154
+ <a href="classes/Dnsruby/RR/DNSKEY.html#M000060">from_string (Dnsruby::RR::DNSKEY)</a><br />
155
155
  <a href="classes/Dnsruby/RR/TSIG.html#M000083">fudge= (Dnsruby::RR::TSIG)</a><br />
156
156
  <a href="classes/Dnsruby/RR/DS.html#M000044">get_digest_type (Dnsruby::RR::DS)</a><br />
157
157
  <a href="classes/Dnsruby/Message.html#M000147">get_exception (Dnsruby::Message)</a><br />
158
158
  <a href="classes/Dnsruby/Header.html#M000252">get_header_rcode (Dnsruby::Header)</a><br />
159
159
  <a href="classes/Dnsruby/RR.html#M000015">get_num (Dnsruby::RR)</a><br />
160
160
  <a href="classes/Dnsruby/Message.html#M000163">get_opt (Dnsruby::Message)</a><br />
161
- <a href="classes/Dnsruby/Resolver.html#M000336">get_ports_from (Dnsruby::Resolver)</a><br />
161
+ <a href="classes/Dnsruby/Resolver.html#M000337">get_ports_from (Dnsruby::Resolver)</a><br />
162
162
  <a href="classes/Dnsruby/Config.html#M000196">get_ready (Dnsruby::Config)</a><br />
163
163
  <a href="classes/Dnsruby/RR/RRSIG.html#M000123">get_time (Dnsruby::RR::RRSIG)</a><br />
164
- <a href="classes/Dnsruby/Resolver.html#M000339">get_tsig (Dnsruby::Resolver)</a><br />
164
+ <a href="classes/Dnsruby/Resolver.html#M000340">get_tsig (Dnsruby::Resolver)</a><br />
165
165
  <a href="classes/Dnsruby/RR/NSEC.html#M000037">get_types (Dnsruby::RR::NSEC)</a><br />
166
- <a href="classes/Dnsruby/Resolv.html#M000197">getaddress (Dnsruby::Resolv)</a><br />
167
166
  <a href="classes/Dnsruby/Resolv.html#M000204">getaddress (Dnsruby::Resolv)</a><br />
168
- <a href="classes/Dnsruby/Hosts.html#M000217">getaddress (Dnsruby::Hosts)</a><br />
169
167
  <a href="classes/Dnsruby/DNS.html#M000312">getaddress (Dnsruby::DNS)</a><br />
170
- <a href="classes/Dnsruby/DNS.html#M000313">getaddresses (Dnsruby::DNS)</a><br />
171
- <a href="classes/Dnsruby/Resolv.html#M000198">getaddresses (Dnsruby::Resolv)</a><br />
168
+ <a href="classes/Dnsruby/Hosts.html#M000217">getaddress (Dnsruby::Hosts)</a><br />
169
+ <a href="classes/Dnsruby/Resolv.html#M000197">getaddress (Dnsruby::Resolv)</a><br />
172
170
  <a href="classes/Dnsruby/Hosts.html#M000218">getaddresses (Dnsruby::Hosts)</a><br />
171
+ <a href="classes/Dnsruby/Resolv.html#M000198">getaddresses (Dnsruby::Resolv)</a><br />
172
+ <a href="classes/Dnsruby/DNS.html#M000313">getaddresses (Dnsruby::DNS)</a><br />
173
173
  <a href="classes/Dnsruby/Resolv.html#M000205">getaddresses (Dnsruby::Resolv)</a><br />
174
174
  <a href="classes/Dnsruby/Resolv.html#M000207">getname (Dnsruby::Resolv)</a><br />
175
- <a href="classes/Dnsruby/Hosts.html#M000220">getname (Dnsruby::Hosts)</a><br />
176
- <a href="classes/Dnsruby/Resolv.html#M000200">getname (Dnsruby::Resolv)</a><br />
177
175
  <a href="classes/Dnsruby/DNS.html#M000315">getname (Dnsruby::DNS)</a><br />
178
- <a href="classes/Dnsruby/DNS.html#M000316">getnames (Dnsruby::DNS)</a><br />
176
+ <a href="classes/Dnsruby/Resolv.html#M000200">getname (Dnsruby::Resolv)</a><br />
177
+ <a href="classes/Dnsruby/Hosts.html#M000220">getname (Dnsruby::Hosts)</a><br />
178
+ <a href="classes/Dnsruby/Resolv.html#M000201">getnames (Dnsruby::Resolv)</a><br />
179
179
  <a href="classes/Dnsruby/Hosts.html#M000221">getnames (Dnsruby::Hosts)</a><br />
180
+ <a href="classes/Dnsruby/DNS.html#M000316">getnames (Dnsruby::DNS)</a><br />
180
181
  <a href="classes/Dnsruby/Resolv.html#M000208">getnames (Dnsruby::Resolv)</a><br />
181
- <a href="classes/Dnsruby/Resolv.html#M000201">getnames (Dnsruby::Resolv)</a><br />
182
182
  <a href="classes/Dnsruby/DNS.html#M000318">getresource (Dnsruby::DNS)</a><br />
183
183
  <a href="classes/Dnsruby/DNS.html#M000319">getresources (Dnsruby::DNS)</a><br />
184
184
  <a href="classes/Dnsruby/Name/Label.html#M000145">hash (Dnsruby::Name::Label)</a><br />
185
185
  <a href="classes/Dnsruby/IPv6.html#M000267">hash (Dnsruby::IPv6)</a><br />
186
186
  <a href="classes/Dnsruby/IPv4.html#M000227">hash (Dnsruby::IPv4)</a><br />
187
- <a href="classes/Dnsruby/RR/NSEC3.html#M000099">hash_alg= (Dnsruby::RR::NSEC3)</a><br />
188
187
  <a href="classes/Dnsruby/RR/NSEC3PARAM.html#M000087">hash_alg= (Dnsruby::RR::NSEC3PARAM)</a><br />
188
+ <a href="classes/Dnsruby/RR/NSEC3.html#M000099">hash_alg= (Dnsruby::RR::NSEC3)</a><br />
189
189
  <a href="classes/Dnsruby/RR/NSEC3.html#M000104">hash_length= (Dnsruby::RR::NSEC3)</a><br />
190
190
  <a href="classes/Dnsruby/Recursor.html#M000301">hints= (Dnsruby::Recursor)</a><br />
191
191
  <a href="classes/Dnsruby/RR/NSAP.html#M000114">idp (Dnsruby::RR::NSAP)</a><br />
192
- <a href="classes/Dnsruby/Resolver.html#M000340">ignore_truncation= (Dnsruby::Resolver)</a><br />
192
+ <a href="classes/Dnsruby/Resolver.html#M000341">ignore_truncation= (Dnsruby::Resolver)</a><br />
193
193
  <a href="classes/Dnsruby/RR.html#M000010">implemented_rrs (Dnsruby::RR)</a><br />
194
194
  <a href="classes/Dnsruby/RR.html#M000007">init_defaults (Dnsruby::RR)</a><br />
195
- <a href="classes/Dnsruby/RR/RRSIG.html#M000118">init_defaults (Dnsruby::RR::RRSIG)</a><br />
196
- <a href="classes/Dnsruby/RR/DNSKEY.html#M000050">init_defaults (Dnsruby::RR::DNSKEY)</a><br />
197
195
  <a href="classes/Dnsruby/RR/TSIG.html#M000080">init_defaults (Dnsruby::RR::TSIG)</a><br />
196
+ <a href="classes/Dnsruby/RR/DNSKEY.html#M000050">init_defaults (Dnsruby::RR::DNSKEY)</a><br />
197
+ <a href="classes/Dnsruby/RR/RRSIG.html#M000118">init_defaults (Dnsruby::RR::RRSIG)</a><br />
198
198
  <a href="classes/Dnsruby/Name/Label.html#M000141">inspect (Dnsruby::Name::Label)</a><br />
199
199
  <a href="classes/Dnsruby/RR/DNSKEY.html#M000062">key= (Dnsruby::RR::DNSKEY)</a><br />
200
200
  <a href="classes/Dnsruby/RR/DNSKEY.html#M000061">key_tag (Dnsruby::RR::DNSKEY)</a><br />
@@ -203,39 +203,40 @@
203
203
  <a href="classes/Dnsruby/RR/LOC.html#M000029">latlon (Dnsruby::RR::LOC)</a><br />
204
204
  <a href="classes/Dnsruby/RR/LOC.html#M000030">latlon2deg (Dnsruby::RR::LOC)</a><br />
205
205
  <a href="classes/Dnsruby/RR/LOC.html#M000027">latlon2dms (Dnsruby::RR::LOC)</a><br />
206
- <a href="classes/Dnsruby/Name/Label.html#M000140">length (Dnsruby::Name::Label)</a><br />
207
206
  <a href="classes/Dnsruby/RRSet.html#M000246">length (Dnsruby::RRSet)</a><br />
207
+ <a href="classes/Dnsruby/Name/Label.html#M000140">length (Dnsruby::Name::Label)</a><br />
208
208
  <a href="classes/Dnsruby/TheLog.html#M000270">level (Dnsruby::TheLog)</a><br />
209
209
  <a href="classes/Dnsruby/TheLog.html#M000269">level= (Dnsruby::TheLog)</a><br />
210
210
  <a href="classes/Dnsruby/Dnssec.html#M000280">load_itar (Dnsruby::Dnssec)</a><br />
211
211
  <a href="classes/Dnsruby.html#M000001">log (Dnsruby)</a><br />
212
212
  <a href="classes/Dnsruby/RRSet.html#M000244">name (Dnsruby::RRSet)</a><br />
213
- <a href="classes/Dnsruby/RR/TSIG.html#M000081">name= (Dnsruby::RR::TSIG)</a><br />
214
213
  <a href="classes/Dnsruby/RR.html#M000003">name= (Dnsruby::RR)</a><br />
214
+ <a href="classes/Dnsruby/RR/TSIG.html#M000081">name= (Dnsruby::RR::TSIG)</a><br />
215
215
  <a href="classes/Dnsruby/Config.html#M000183">nameserver (Dnsruby::Config)</a><br />
216
+ <a href="classes/Dnsruby/Resolver.html#M000330">nameserver= (Dnsruby::Resolver)</a><br />
216
217
  <a href="classes/Dnsruby/Config.html#M000192">nameserver= (Dnsruby::Config)</a><br />
217
- <a href="classes/Dnsruby/Resolver.html#M000329">nameserver= (Dnsruby::Resolver)</a><br />
218
+ <a href="classes/Dnsruby/Resolver.html#M000329">nameservers= (Dnsruby::Resolver)</a><br />
218
219
  <a href="classes/Dnsruby/Config.html#M000184">ndots (Dnsruby::Config)</a><br />
219
220
  <a href="classes/Dnsruby/Config.html#M000189">ndots= (Dnsruby::Config)</a><br />
220
221
  <a href="classes/Dnsruby/Resolv.html#M000203">new (Dnsruby::Resolv)</a><br />
221
- <a href="classes/Dnsruby/RR/OPT/Option.html#M000092">new (Dnsruby::RR::OPT::Option)</a><br />
222
222
  <a href="classes/Dnsruby/Question.html#M000247">new (Dnsruby::Question)</a><br />
223
- <a href="classes/Dnsruby/ZoneTransfer/Delta.html#M000181">new (Dnsruby::ZoneTransfer::Delta)</a><br />
224
- <a href="classes/Dnsruby/Update.html#M000295">new (Dnsruby::Update)</a><br />
223
+ <a href="classes/Dnsruby/Header.html#M000253">new (Dnsruby::Header)</a><br />
224
+ <a href="classes/Dnsruby/Message.html#M000146">new (Dnsruby::Message)</a><br />
225
225
  <a href="classes/Dnsruby/Config.html#M000186">new (Dnsruby::Config)</a><br />
226
- <a href="classes/Dnsruby/ZoneTransfer.html#M000179">new (Dnsruby::ZoneTransfer)</a><br />
227
226
  <a href="classes/Dnsruby/Recursor.html#M000300">new (Dnsruby::Recursor)</a><br />
228
- <a href="classes/Dnsruby/Name/Label.html#M000138">new (Dnsruby::Name::Label)</a><br />
227
+ <a href="classes/Dnsruby/ZoneTransfer/Delta.html#M000181">new (Dnsruby::ZoneTransfer::Delta)</a><br />
229
228
  <a href="classes/Dnsruby/DNS.html#M000311">new (Dnsruby::DNS)</a><br />
230
- <a href="classes/Dnsruby/Message.html#M000146">new (Dnsruby::Message)</a><br />
231
- <a href="classes/Dnsruby/Message/Section.html#M000173">new (Dnsruby::Message::Section)</a><br />
232
- <a href="classes/Dnsruby/SingleResolver.html#M000210">new (Dnsruby::SingleResolver)</a><br />
229
+ <a href="classes/Dnsruby/ZoneTransfer.html#M000179">new (Dnsruby::ZoneTransfer)</a><br />
230
+ <a href="classes/Dnsruby/RR/OPT/Option.html#M000092">new (Dnsruby::RR::OPT::Option)</a><br />
233
231
  <a href="classes/Dnsruby/RRSet.html#M000230">new (Dnsruby::RRSet)</a><br />
232
+ <a href="classes/Dnsruby/Message/Section.html#M000173">new (Dnsruby::Message::Section)</a><br />
233
+ <a href="classes/Dnsruby/Update.html#M000295">new (Dnsruby::Update)</a><br />
234
+ <a href="classes/Dnsruby/Name/Label.html#M000138">new (Dnsruby::Name::Label)</a><br />
234
235
  <a href="classes/Dnsruby/Resolver.html#M000326">new (Dnsruby::Resolver)</a><br />
235
236
  <a href="classes/Dnsruby/RR/TKEY.html#M000024">new (Dnsruby::RR::TKEY)</a><br />
236
- <a href="classes/Dnsruby/Hosts.html#M000216">new (Dnsruby::Hosts)</a><br />
237
237
  <a href="classes/Dnsruby/RR/IN/WKS.html#M000022">new (Dnsruby::RR::IN::WKS)</a><br />
238
- <a href="classes/Dnsruby/Header.html#M000253">new (Dnsruby::Header)</a><br />
238
+ <a href="classes/Dnsruby/Hosts.html#M000216">new (Dnsruby::Hosts)</a><br />
239
+ <a href="classes/Dnsruby/SingleResolver.html#M000210">new (Dnsruby::SingleResolver)</a><br />
239
240
  <a href="classes/Dnsruby/Header.html#M000256">new_from_data (Dnsruby::Header)</a><br />
240
241
  <a href="classes/Dnsruby/RR.html#M000008">new_from_hash (Dnsruby::RR)</a><br />
241
242
  <a href="classes/Dnsruby/RR.html#M000009">new_from_string (Dnsruby::RR)</a><br />
@@ -244,12 +245,12 @@
244
245
  <a href="classes/Dnsruby/DNS.html#M000308">open (Dnsruby::DNS)</a><br />
245
246
  <a href="classes/Dnsruby/RR/NSEC3.html#M000103">opt_out? (Dnsruby::RR::NSEC3)</a><br />
246
247
  <a href="classes/Dnsruby/RR/TKEY.html#M000023">other_data= (Dnsruby::RR::TKEY)</a><br />
248
+ <a href="classes/Dnsruby/Resolver.html#M000331">packet_timeout= (Dnsruby::Resolver)</a><br />
247
249
  <a href="classes/Dnsruby/SingleResolver.html#M000213">packet_timeout= (Dnsruby::SingleResolver)</a><br />
248
- <a href="classes/Dnsruby/Resolver.html#M000330">packet_timeout= (Dnsruby::Resolver)</a><br />
249
- <a href="classes/Dnsruby/Resolver.html#M000343">persistent_tcp= (Dnsruby::Resolver)</a><br />
250
- <a href="classes/Dnsruby/Resolver.html#M000344">persistent_udp= (Dnsruby::Resolver)</a><br />
251
- <a href="classes/Dnsruby/Resolver.html#M000342">port= (Dnsruby::Resolver)</a><br />
252
- <a href="classes/Dnsruby/Resolver.html#M000335">port_in_range (Dnsruby::Resolver)</a><br />
250
+ <a href="classes/Dnsruby/Resolver.html#M000344">persistent_tcp= (Dnsruby::Resolver)</a><br />
251
+ <a href="classes/Dnsruby/Resolver.html#M000345">persistent_udp= (Dnsruby::Resolver)</a><br />
252
+ <a href="classes/Dnsruby/Resolver.html#M000343">port= (Dnsruby::Resolver)</a><br />
253
+ <a href="classes/Dnsruby/Resolver.html#M000336">port_in_range (Dnsruby::Resolver)</a><br />
253
254
  <a href="classes/Dnsruby/RR/LOC.html#M000031">precsize_ntoval (Dnsruby::RR::LOC)</a><br />
254
255
  <a href="classes/Dnsruby/RR/LOC.html#M000032">precsize_valton (Dnsruby::RR::LOC)</a><br />
255
256
  <a href="classes/Dnsruby/Update.html#M000296">present (Dnsruby::Update)</a><br />
@@ -264,15 +265,15 @@
264
265
  <a href="classes/Dnsruby/SingleResolver.html#M000215">query_timeout= (Dnsruby::SingleResolver)</a><br />
265
266
  <a href="classes/Dnsruby/Message.html#M000164">rcode (Dnsruby::Message)</a><br />
266
267
  <a href="classes/Dnsruby/Header.html#M000255">rcode= (Dnsruby::Header)</a><br />
267
- <a href="classes/Dnsruby/RR/TSIG.html#M000084">rdata_to_string (Dnsruby::RR::TSIG)</a><br />
268
268
  <a href="classes/Dnsruby/RR/IN/SRV.html#M000018">rdata_to_string (Dnsruby::RR::IN::SRV)</a><br />
269
- <a href="classes/Dnsruby/RR/IN/A.html#M000021">rdata_to_string (Dnsruby::RR::IN::A)</a><br />
270
269
  <a href="classes/Dnsruby/RR/TXT.html#M000073">rdata_to_string (Dnsruby::RR::TXT)</a><br />
271
270
  <a href="classes/Dnsruby/RR/TKEY.html#M000026">rdata_to_string (Dnsruby::RR::TKEY)</a><br />
272
- <a href="classes/Dnsruby/RR.html#M000012">rdata_to_string (Dnsruby::RR)</a><br />
273
271
  <a href="classes/Dnsruby/RR/X25.html#M000068">rdata_to_string (Dnsruby::RR::X25)</a><br />
272
+ <a href="classes/Dnsruby/RR/IN/A.html#M000021">rdata_to_string (Dnsruby::RR::IN::A)</a><br />
273
+ <a href="classes/Dnsruby/RR.html#M000012">rdata_to_string (Dnsruby::RR)</a><br />
274
+ <a href="classes/Dnsruby/RR/TSIG.html#M000084">rdata_to_string (Dnsruby::RR::TSIG)</a><br />
274
275
  <a href="classes/Dnsruby/RR.html#M000002">rdlength (Dnsruby::RR)</a><br />
275
- <a href="classes/Dnsruby/Resolver.html#M000345">recurse= (Dnsruby::Resolver)</a><br />
276
+ <a href="classes/Dnsruby/Resolver.html#M000346">recurse= (Dnsruby::Resolver)</a><br />
276
277
  <a href="classes/Dnsruby/Recursor.html#M000304">recursion_callback (Dnsruby::Recursor)</a><br />
277
278
  <a href="classes/Dnsruby/Recursor.html#M000303">recursion_callback= (Dnsruby::Recursor)</a><br />
278
279
  <a href="classes/Dnsruby/Message/Section.html#M000177">remove_rrset (Dnsruby::Message::Section)</a><br />
@@ -290,8 +291,8 @@
290
291
  <a href="classes/Dnsruby/RR/NSAP.html#M000116">rsvd (Dnsruby::RR::NSAP)</a><br />
291
292
  <a href="classes/Dnsruby/RR/NSEC3.html#M000105">salt (Dnsruby::RR::NSEC3)</a><br />
292
293
  <a href="classes/Dnsruby/RR/NSEC3PARAM.html#M000085">salt (Dnsruby::RR::NSEC3PARAM)</a><br />
293
- <a href="classes/Dnsruby/RR/NSEC3PARAM.html#M000086">salt= (Dnsruby::RR::NSEC3PARAM)</a><br />
294
294
  <a href="classes/Dnsruby/RR/NSEC3.html#M000106">salt= (Dnsruby::RR::NSEC3)</a><br />
295
+ <a href="classes/Dnsruby/RR/NSEC3PARAM.html#M000086">salt= (Dnsruby::RR::NSEC3PARAM)</a><br />
295
296
  <a href="classes/Dnsruby/RR.html#M000006">sameRRset (Dnsruby::RR)</a><br />
296
297
  <a href="classes/Dnsruby/Config.html#M000194">search (Dnsruby::Config)</a><br />
297
298
  <a href="classes/Dnsruby/Config.html#M000190">search= (Dnsruby::Config)</a><br />
@@ -315,45 +316,45 @@
315
316
  <a href="classes/Dnsruby/RR/RRSIG.html#M000121">signers_name= (Dnsruby::RR::RRSIG)</a><br />
316
317
  <a href="classes/Dnsruby/RRSet.html#M000231">sigs (Dnsruby::RRSet)</a><br />
317
318
  <a href="classes/Dnsruby/RRSet.html#M000235">sort_canonical (Dnsruby::RRSet)</a><br />
318
- <a href="classes/Dnsruby/Name.html#M000127">split (Dnsruby::Name)</a><br />
319
319
  <a href="classes/Dnsruby/Name/Label.html#M000136">split (Dnsruby::Name::Label)</a><br />
320
- <a href="classes/Dnsruby/Resolver.html#M000341">src_address= (Dnsruby::Resolver)</a><br />
321
- <a href="classes/Dnsruby/Resolver.html#M000331">src_port (Dnsruby::Resolver)</a><br />
322
- <a href="classes/Dnsruby/Resolver.html#M000332">src_port= (Dnsruby::Resolver)</a><br />
320
+ <a href="classes/Dnsruby/Name.html#M000127">split (Dnsruby::Name)</a><br />
321
+ <a href="classes/Dnsruby/Resolver.html#M000342">src_address= (Dnsruby::Resolver)</a><br />
322
+ <a href="classes/Dnsruby/Resolver.html#M000332">src_port (Dnsruby::Resolver)</a><br />
323
+ <a href="classes/Dnsruby/Resolver.html#M000333">src_port= (Dnsruby::Resolver)</a><br />
323
324
  <a href="classes/Dnsruby/RR/NSAP.html#M000117">str2bcd (Dnsruby::RR::NSAP)</a><br />
324
325
  <a href="classes/Dnsruby/Name.html#M000134">subdomain_of? (Dnsruby::Name)</a><br />
325
326
  <a href="classes/Dnsruby/IPv4.html#M000224">to_name (Dnsruby::IPv4)</a><br />
326
327
  <a href="classes/Dnsruby/IPv6.html#M000266">to_name (Dnsruby::IPv6)</a><br />
328
+ <a href="classes/Dnsruby/Question.html#M000251">to_s (Dnsruby::Question)</a><br />
329
+ <a href="classes/Dnsruby/Name.html#M000135">to_s (Dnsruby::Name)</a><br />
327
330
  <a href="classes/Dnsruby/Header.html#M000261">to_s (Dnsruby::Header)</a><br />
328
331
  <a href="classes/Dnsruby/ZoneTransfer/Delta.html#M000182">to_s (Dnsruby::ZoneTransfer::Delta)</a><br />
329
- <a href="classes/Dnsruby/IPv6.html#M000265">to_s (Dnsruby::IPv6)</a><br />
330
- <a href="classes/Dnsruby/Question.html#M000251">to_s (Dnsruby::Question)</a><br />
331
- <a href="classes/Dnsruby/RR.html#M000011">to_s (Dnsruby::RR)</a><br />
332
332
  <a href="classes/Dnsruby/DNS.html#M000310">to_s (Dnsruby::DNS)</a><br />
333
+ <a href="classes/Dnsruby/RR.html#M000011">to_s (Dnsruby::RR)</a><br />
334
+ <a href="classes/Dnsruby/RRSet.html#M000245">to_s (Dnsruby::RRSet)</a><br />
335
+ <a href="classes/Dnsruby/Message.html#M000165">to_s (Dnsruby::Message)</a><br />
333
336
  <a href="classes/Dnsruby/Config.html#M000193">to_s (Dnsruby::Config)</a><br />
334
- <a href="classes/Dnsruby/Name.html#M000135">to_s (Dnsruby::Name)</a><br />
335
337
  <a href="classes/Dnsruby/Name/Label.html#M000139">to_s (Dnsruby::Name::Label)</a><br />
336
- <a href="classes/Dnsruby/Message.html#M000165">to_s (Dnsruby::Message)</a><br />
337
- <a href="classes/Dnsruby/RRSet.html#M000245">to_s (Dnsruby::RRSet)</a><br />
338
+ <a href="classes/Dnsruby/IPv6.html#M000265">to_s (Dnsruby::IPv6)</a><br />
338
339
  <a href="classes/Dnsruby/Header.html#M000262">to_s_with_rcode (Dnsruby::Header)</a><br />
339
340
  <a href="classes/Dnsruby/ZoneTransfer.html#M000180">transfer (Dnsruby::ZoneTransfer)</a><br />
340
341
  <a href="classes/Dnsruby/Dnssec.html#M000278">trust_anchors (Dnsruby::Dnssec)</a><br />
341
342
  <a href="classes/Dnsruby/Message.html#M000159">tsig (Dnsruby::Message)</a><br />
342
- <a href="classes/Dnsruby/Resolver.html#M000338">tsig= (Dnsruby::Resolver)</a><br />
343
+ <a href="classes/Dnsruby/Resolver.html#M000339">tsig= (Dnsruby::Resolver)</a><br />
343
344
  <a href="classes/Dnsruby/ZoneTransfer.html#M000178">tsig= (Dnsruby::ZoneTransfer)</a><br />
344
345
  <a href="classes/Dnsruby/RRSet.html#M000242">ttl (Dnsruby::RRSet)</a><br />
345
346
  <a href="classes/Dnsruby/RRSet.html#M000243">ttl= (Dnsruby::RRSet)</a><br />
346
347
  <a href="classes/Dnsruby/RRSet.html#M000240">type (Dnsruby::RRSet)</a><br />
347
348
  <a href="classes/Dnsruby/RR.html#M000004">type= (Dnsruby::RR)</a><br />
348
349
  <a href="classes/Dnsruby/RR/RRSIG.html#M000120">type_covered= (Dnsruby::RR::RRSIG)</a><br />
349
- <a href="classes/Dnsruby/RR/NSEC.html#M000036">types= (Dnsruby::RR::NSEC)</a><br />
350
- <a href="classes/Dnsruby/RR/NSEC3PARAM.html#M000088">types= (Dnsruby::RR::NSEC3PARAM)</a><br />
351
350
  <a href="classes/Dnsruby/RR/NSEC3.html#M000100">types= (Dnsruby::RR::NSEC3)</a><br />
352
- <a href="classes/Dnsruby/Resolver.html#M000347">udp_size= (Dnsruby::Resolver)</a><br />
351
+ <a href="classes/Dnsruby/RR/NSEC3PARAM.html#M000088">types= (Dnsruby::RR::NSEC3PARAM)</a><br />
352
+ <a href="classes/Dnsruby/RR/NSEC.html#M000036">types= (Dnsruby::RR::NSEC)</a><br />
353
+ <a href="classes/Dnsruby/Resolver.html#M000348">udp_size= (Dnsruby::Resolver)</a><br />
353
354
  <a href="classes/Dnsruby/Classes.html#M000229">unknown_code (Dnsruby::Classes)</a><br />
354
355
  <a href="classes/Dnsruby/Classes.html#M000228">unknown_string (Dnsruby::Classes)</a><br />
355
356
  <a href="classes/Dnsruby/Resolver.html#M000328">update_internal_res (Dnsruby::Resolver)</a><br />
356
- <a href="classes/Dnsruby/Resolver.html#M000337">use_tcp= (Dnsruby::Resolver)</a><br />
357
+ <a href="classes/Dnsruby/Resolver.html#M000338">use_tcp= (Dnsruby::Resolver)</a><br />
357
358
  <a href="classes/Dnsruby/Dnssec.html#M000285">validate (Dnsruby::Dnssec)</a><br />
358
359
  <a href="classes/Dnsruby/Dnssec.html#M000287">validate_with_anchors (Dnsruby::Dnssec)</a><br />
359
360
  <a href="classes/Dnsruby/Dnssec.html#M000289">validate_with_dlv (Dnsruby::Dnssec)</a><br />
@@ -100,7 +100,7 @@ module Dnsruby
100
100
  # Fix up TTLs!!
101
101
  offset = (Time.now - @time_stored).to_i
102
102
  m.each_resource {|rr|
103
- next if rr.type == Types.OPT
103
+ next if rr.type == Types::OPT
104
104
  rr.ttl = rr.ttl - offset
105
105
  }
106
106
  return m
@@ -26,8 +26,8 @@ module Dnsruby
26
26
  # ONLY cache the response if it is not an update response
27
27
  question = query.question()[0]
28
28
  if (query.do_caching && (query.class != Update) &&
29
- (question.qtype != Types.AXFR) && (question.qtype != Types.IXFR) &&
30
- (response.rcode == RCode.NOERROR) &&(!response.tsig) &&
29
+ (question.qtype != Types::AXFR) && (question.qtype != Types::IXFR) &&
30
+ (response.rcode == RCode::NOERROR) &&(!response.tsig) &&
31
31
  (query.class != Update) &&
32
32
  (response.header.ancount > 0))
33
33
  ## @TODO@ What about TSIG-signed responses?
@@ -346,6 +346,12 @@ module Dnsruby
346
346
  end
347
347
  Dnsruby.log.debug{"Sending packet to #{@server}:#{@port} from #{@src_address}:#{src_port}, use_tcp=#{use_tcp} : #{query.question()[0].qname}, #{query.question()[0].qtype}"}
348
348
  # print "#{Time.now} : Sending packet to #{@server} : #{query.question()[0].qname}, #{query.question()[0].qtype}\n"
349
+ # Listen for the response before we send the packet (to avoid any race conditions)
350
+ query_settings = SelectThread::QuerySettings.new(query_bytes, query, @ignore_truncation, client_queue, client_query_id, socket, @server, @port, endtime, udp_packet_size, self)
351
+ # The select thread will now wait for the response and send that or a timeout
352
+ # back to the client_queue.
353
+ st.add_to_select(query_settings)
354
+ # Now that we're listening for the response, send the query!
349
355
  begin
350
356
  if (use_tcp)
351
357
  lenmsg = [query_bytes.length].pack('n')
@@ -353,18 +359,13 @@ module Dnsruby
353
359
  end
354
360
  socket.send(query_bytes, 0)
355
361
  rescue Exception => e
362
+ st.push_exception_to_select(client_query_id, client_queue, err, nil)
356
363
  socket.close
357
364
  err=IOError.new("Send failed to #{@server}:#{@port} from #{@src_address}:#{src_port}, use_tcp=#{use_tcp}, exception : #{e}")
358
365
  Dnsruby.log.error{"#{err}"}
359
- st.push_exception_to_select(client_query_id, client_queue, err, nil)
360
366
  return
361
367
  end
362
368
 
363
- # Then listen for the response
364
- query_settings = SelectThread::QuerySettings.new(query_bytes, query, @ignore_truncation, client_queue, client_query_id, socket, @server, @port, endtime, udp_packet_size, self)
365
- # The select thread will now wait for the response and send that or a timeout
366
- # back to the client_queue.
367
- st.add_to_select(query_settings)
368
369
  Dnsruby.log.debug{"Packet sent to #{@server}:#{@port} from #{@src_address}:#{src_port}, use_tcp=#{use_tcp} : #{query.question()[0].qname}, #{query.question()[0].qtype}"}
369
370
  # print "Packet sent to #{@server}:#{@port} from #{@src_address}:#{src_port}, use_tcp=#{use_tcp} : #{query.question()[0].qname}, #{query.question()[0].qtype}\n"
370
371
  end
@@ -494,7 +495,7 @@ module Dnsruby
494
495
  return true
495
496
  end
496
497
 
497
- def make_query(name, type = Types.A, klass = Classes.IN, set_cd=@dnssec)
498
+ def make_query(name, type = Types::A, klass = Classes::IN, set_cd=@dnssec)
498
499
  msg = Message.new
499
500
  msg.header.rd = 1
500
501
  msg.add_question(name, type, klass)
@@ -541,7 +542,7 @@ module Dnsruby
541
542
  optrr = RR::OPT.new(udp_packet_size) # Decimal UDPpayload
542
543
  optrr.dnssec_ok=true
543
544
 
544
- if (packet.additional.rrset(packet.question()[0].qname, Types.OPT).rrs.length == 0)
545
+ if (packet.additional.rrset(packet.question()[0].qname, Types::OPT).rrs.length == 0)
545
546
  packet.add_additional(optrr)
546
547
  end
547
548
 
@@ -202,7 +202,7 @@ module Dnsruby
202
202
  if (ans = packet.answer)
203
203
  ans.each do |rr|
204
204
  if (rr.name.to_s =~ /^\.?$/ and
205
- rr.type == Types.NS)
205
+ rr.type == Types::NS)
206
206
  # Found root authority
207
207
  server = rr.nsdname.to_s.downcase
208
208
  server.sub!(/\.$/,"")
@@ -215,14 +215,14 @@ module Dnsruby
215
215
  server = rr.name.to_s.downcase
216
216
  server.sub!(/\.$/,"")
217
217
  if (server)
218
- if ( rr.type == Types.A)
218
+ if ( rr.type == Types::A)
219
219
  #print ";; ADDITIONAL HELP: $server -> [".$rr->rdatastr."]\n" if $self->{'debug'};
220
220
  if (hints[server]!=nil)
221
221
  TheLog.debug(";; STORING IP: #{server} IN A "+rr.address.to_s+"\n")
222
222
  hints[server].push([rr.address.to_s, rr.ttl])
223
223
  end
224
224
  end
225
- if ( rr.type == Types.AAAA)
225
+ if ( rr.type == Types::AAAA)
226
226
  #print ";; ADDITIONAL HELP: $server -> [".$rr->rdatastr."]\n" if $self->{'debug'};
227
227
  if (hints[server])
228
228
  TheLog.debug(";; STORING IP6: #{server} IN AAAA "+rr.address.to_s+"\n")
@@ -455,7 +455,7 @@ module Dnsruby
455
455
  ans.each do |rr_arr|
456
456
  rr_arr.each do |rr|
457
457
  TheLog.debug(";; RR:" + rr.inspect + "")
458
- if (rr.type == Types.CNAME)
458
+ if (rr.type == Types::CNAME)
459
459
  # Follow CNAME
460
460
  server = rr.name.to_s.downcase
461
461
  if (server)
@@ -471,7 +471,7 @@ module Dnsruby
471
471
  next
472
472
  end
473
473
  end
474
- elsif (rr.type == Types.A || rr.type == Types.AAAA )
474
+ elsif (rr.type == Types::A || rr.type == Types::AAAA )
475
475
  server = rr.name.to_s.downcase
476
476
  if (server)
477
477
  server.sub!(/\.*$/, ".")
@@ -561,7 +561,7 @@ module Dnsruby
561
561
  # foreach my $rr (@authority) {
562
562
  authority.each do |rr|
563
563
  if (rr.type.to_s =~ /^(NS|SOA)$/)
564
- server = (rr.type == Types.NS ? rr.nsdname : rr.mname).to_s.downcase
564
+ server = (rr.type == Types::NS ? rr.nsdname : rr.mname).to_s.downcase
565
565
  server.sub!(/\.*$/, ".")
566
566
  of = rr.name.to_s.downcase
567
567
  of.sub!(/\.*$/, ".")
@@ -572,8 +572,8 @@ module Dnsruby
572
572
  elsif (of =~ /#{known_zone}/)
573
573
  TheLog.debug(";; _dorecursion() FOUND closer authority for [#{of}] at [#{server}].")
574
574
  auth[server] ||= AddressCache.new #[] @TODO@ If there is no additional record for this, then we want to use the authority!
575
- if ((packet.additional.rrset(rr.nsdname, Types.A).length == 0) &&
576
- (packet.additional.rrset(rr.nsdname, Types.AAAA).length == 0))
575
+ if ((packet.additional.rrset(rr.nsdname, Types::A).length == 0) &&
576
+ (packet.additional.rrset(rr.nsdname, Types::AAAA).length == 0))
577
577
  auth[server].push([rr.nsdname, rr.ttl])
578
578
  end
579
579
  else
@@ -586,7 +586,7 @@ module Dnsruby
586
586
  end
587
587
  # foreach my $rr ($packet->additional)
588
588
  packet.additional.each do |rr|
589
- if (rr.type == Types.CNAME)
589
+ if (rr.type == Types::CNAME)
590
590
  # Store this CNAME into %auth too
591
591
  server = rr.name.to_s.downcase
592
592
  if (server)
@@ -601,15 +601,15 @@ module Dnsruby
601
601
  end
602
602
 
603
603
  end
604
- elsif (rr.type == Types.A || rr.type == Types.AAAA)
604
+ elsif (rr.type == Types::A || rr.type == Types::AAAA)
605
605
  server = rr.name.to_s.downcase
606
606
  if (server)
607
607
  server.sub!(/\.*$/, ".")
608
608
  if (auth[server]!=nil)
609
- if (rr.type == Types.A)
609
+ if (rr.type == Types::A)
610
610
  TheLog.debug(";; _dorecursion() STORING: #{server} IN A " + rr.address.to_s)
611
611
  end
612
- if (rr.type == Types.AAAA)
612
+ if (rr.type == Types::AAAA)
613
613
  TheLog.debug(";; _dorecursion() STORING: #{server} IN AAAA " + rr.address.to_s)
614
614
  end
615
615
  auth[server].push([rr.address.to_s, rr.ttl])
@@ -653,7 +653,7 @@ module Dnsruby
653
653
  n.absolute = true
654
654
  if ((n.to_s == zone) || (n.to_s == Name.create(zone).to_s) ||
655
655
  (n.subdomain_of?(Name.create(zone))) ||
656
- (rrset.type == Types.OPT))
656
+ (rrset.type == Types::OPT))
657
657
  # # @TODO@ Leave in the response if it is an SOA, NSEC or RRSIGfor the parent zone
658
658
  ## elsif ((query_name.subdomain_of?rrset.name) &&
659
659
  # elsif ((rrset.type == Types.SOA) || (rrset.type == Types.NSEC) || (rrset.type == Types.NSEC3)) #)