dnsruby 1.2 → 1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (476) hide show
  1. data/demo/axfr.rb +176 -0
  2. data/demo/check_soa.rb +141 -0
  3. data/demo/check_zone.rb +157 -0
  4. data/demo/example_recurse.rb +11 -0
  5. data/demo/mresolv.rb +67 -0
  6. data/demo/mx.rb +33 -0
  7. data/demo/rubydig.rb +58 -0
  8. data/demo/to_resolve.txt +3088 -0
  9. data/demo/trace_dns.rb +15 -0
  10. data/doc/classes/Dnsruby.html +463 -0
  11. data/doc/classes/Dnsruby/Algorithms.html +171 -0
  12. data/doc/classes/Dnsruby/Classes.html +197 -0
  13. data/doc/classes/Dnsruby/Classes.src/M000209.html +23 -0
  14. data/doc/classes/Dnsruby/Classes.src/M000210.html +19 -0
  15. data/doc/classes/Dnsruby/CodeMapper.html +375 -0
  16. data/doc/classes/Dnsruby/CodeMapper.src/M000186.html +18 -0
  17. data/doc/classes/Dnsruby/CodeMapper.src/M000187.html +33 -0
  18. data/doc/classes/Dnsruby/CodeMapper.src/M000188.html +21 -0
  19. data/doc/classes/Dnsruby/CodeMapper.src/M000189.html +19 -0
  20. data/doc/classes/Dnsruby/CodeMapper.src/M000190.html +19 -0
  21. data/doc/classes/Dnsruby/CodeMapper.src/M000191.html +18 -0
  22. data/doc/classes/Dnsruby/CodeMapper.src/M000192.html +22 -0
  23. data/doc/classes/Dnsruby/CodeMapper.src/M000193.html +22 -0
  24. data/doc/classes/Dnsruby/CodeMapper.src/M000194.html +22 -0
  25. data/doc/classes/Dnsruby/CodeMapper.src/M000195.html +31 -0
  26. data/doc/classes/Dnsruby/CodeMapper.src/M000196.html +19 -0
  27. data/doc/classes/Dnsruby/Config.html +413 -0
  28. data/doc/classes/Dnsruby/Config.src/M000148.html +18 -0
  29. data/doc/classes/Dnsruby/Config.src/M000149.html +19 -0
  30. data/doc/classes/Dnsruby/Config.src/M000150.html +19 -0
  31. data/doc/classes/Dnsruby/Config.src/M000151.html +25 -0
  32. data/doc/classes/Dnsruby/Config.src/M000152.html +21 -0
  33. data/doc/classes/Dnsruby/Config.src/M000153.html +38 -0
  34. data/doc/classes/Dnsruby/Config.src/M000154.html +26 -0
  35. data/doc/classes/Dnsruby/Config.src/M000155.html +22 -0
  36. data/doc/classes/Dnsruby/Config.src/M000156.html +27 -0
  37. data/doc/classes/Dnsruby/Config.src/M000157.html +22 -0
  38. data/doc/classes/Dnsruby/Config.src/M000158.html +21 -0
  39. data/doc/classes/Dnsruby/DNS.html +571 -0
  40. data/doc/classes/Dnsruby/DNS.src/M000258.html +24 -0
  41. data/doc/classes/Dnsruby/DNS.src/M000259.html +18 -0
  42. data/doc/classes/Dnsruby/DNS.src/M000260.html +18 -0
  43. data/doc/classes/Dnsruby/DNS.src/M000261.html +20 -0
  44. data/doc/classes/Dnsruby/DNS.src/M000262.html +19 -0
  45. data/doc/classes/Dnsruby/DNS.src/M000263.html +20 -0
  46. data/doc/classes/Dnsruby/DNS.src/M000264.html +18 -0
  47. data/doc/classes/Dnsruby/DNS.src/M000265.html +19 -0
  48. data/doc/classes/Dnsruby/DNS.src/M000266.html +20 -0
  49. data/doc/classes/Dnsruby/DNS.src/M000267.html +28 -0
  50. data/doc/classes/Dnsruby/DNS.src/M000268.html +19 -0
  51. data/doc/classes/Dnsruby/DNS.src/M000269.html +20 -0
  52. data/doc/classes/Dnsruby/DNS.src/M000270.html +31 -0
  53. data/doc/classes/Dnsruby/DecodeError.html +120 -0
  54. data/doc/classes/Dnsruby/Dnssec.html +287 -0
  55. data/doc/classes/Dnsruby/Dnssec.src/M000249.html +23 -0
  56. data/doc/classes/Dnsruby/Dnssec.src/M000250.html +19 -0
  57. data/doc/classes/Dnsruby/Dnssec.src/M000251.html +90 -0
  58. data/doc/classes/Dnsruby/Dnssec.src/M000252.html +76 -0
  59. data/doc/classes/Dnsruby/EncodeError.html +120 -0
  60. data/doc/classes/Dnsruby/FormErr.html +119 -0
  61. data/doc/classes/Dnsruby/Header.html +501 -0
  62. data/doc/classes/Dnsruby/Header.src/M000231.html +35 -0
  63. data/doc/classes/Dnsruby/Header.src/M000232.html +18 -0
  64. data/doc/classes/Dnsruby/Header.src/M000233.html +18 -0
  65. data/doc/classes/Dnsruby/Header.src/M000234.html +21 -0
  66. data/doc/classes/Dnsruby/Header.src/M000235.html +20 -0
  67. data/doc/classes/Dnsruby/Header.src/M000236.html +32 -0
  68. data/doc/classes/Dnsruby/Header.src/M000237.html +27 -0
  69. data/doc/classes/Dnsruby/Header.src/M000238.html +26 -0
  70. data/doc/classes/Dnsruby/Header.src/M000239.html +47 -0
  71. data/doc/classes/Dnsruby/Header.src/M000240.html +28 -0
  72. data/doc/classes/Dnsruby/Header.src/M000241.html +30 -0
  73. data/doc/classes/Dnsruby/Hosts.html +316 -0
  74. data/doc/classes/Dnsruby/Hosts.src/M000197.html +20 -0
  75. data/doc/classes/Dnsruby/Hosts.src/M000198.html +19 -0
  76. data/doc/classes/Dnsruby/Hosts.src/M000199.html +20 -0
  77. data/doc/classes/Dnsruby/Hosts.src/M000200.html +21 -0
  78. data/doc/classes/Dnsruby/Hosts.src/M000201.html +19 -0
  79. data/doc/classes/Dnsruby/Hosts.src/M000202.html +20 -0
  80. data/doc/classes/Dnsruby/Hosts.src/M000203.html +21 -0
  81. data/doc/classes/Dnsruby/IPv4.html +233 -0
  82. data/doc/classes/Dnsruby/IPv4.src/M000204.html +32 -0
  83. data/doc/classes/Dnsruby/IPv4.src/M000205.html +19 -0
  84. data/doc/classes/Dnsruby/IPv4.src/M000206.html +18 -0
  85. data/doc/classes/Dnsruby/IPv4.src/M000207.html +18 -0
  86. data/doc/classes/Dnsruby/IPv4.src/M000208.html +18 -0
  87. data/doc/classes/Dnsruby/IPv6.html +281 -0
  88. data/doc/classes/Dnsruby/IPv6.src/M000242.html +60 -0
  89. data/doc/classes/Dnsruby/IPv6.src/M000243.html +22 -0
  90. data/doc/classes/Dnsruby/IPv6.src/M000244.html +20 -0
  91. data/doc/classes/Dnsruby/IPv6.src/M000245.html +18 -0
  92. data/doc/classes/Dnsruby/Message.html +803 -0
  93. data/doc/classes/Dnsruby/Message.src/M000119.html +38 -0
  94. data/doc/classes/Dnsruby/Message.src/M000120.html +26 -0
  95. data/doc/classes/Dnsruby/Message.src/M000121.html +22 -0
  96. data/doc/classes/Dnsruby/Message.src/M000122.html +22 -0
  97. data/doc/classes/Dnsruby/Message.src/M000123.html +20 -0
  98. data/doc/classes/Dnsruby/Message.src/M000124.html +20 -0
  99. data/doc/classes/Dnsruby/Message.src/M000125.html +20 -0
  100. data/doc/classes/Dnsruby/Message.src/M000126.html +20 -0
  101. data/doc/classes/Dnsruby/Message.src/M000127.html +18 -0
  102. data/doc/classes/Dnsruby/Message.src/M000128.html +20 -0
  103. data/doc/classes/Dnsruby/Message.src/M000129.html +23 -0
  104. data/doc/classes/Dnsruby/Message.src/M000130.html +30 -0
  105. data/doc/classes/Dnsruby/Message.src/M000131.html +20 -0
  106. data/doc/classes/Dnsruby/Message.src/M000132.html +18 -0
  107. data/doc/classes/Dnsruby/Message.src/M000133.html +56 -0
  108. data/doc/classes/Dnsruby/Message.src/M000134.html +35 -0
  109. data/doc/classes/Dnsruby/Message.src/M000135.html +46 -0
  110. data/doc/classes/Dnsruby/Message/Section.html +160 -0
  111. data/doc/classes/Dnsruby/Message/Section.src/M000141.html +29 -0
  112. data/doc/classes/Dnsruby/Message/Section.src/M000142.html +30 -0
  113. data/doc/classes/Dnsruby/MetaTypes.html +136 -0
  114. data/doc/classes/Dnsruby/Modes.html +171 -0
  115. data/doc/classes/Dnsruby/NXDomain.html +119 -0
  116. data/doc/classes/Dnsruby/Name.html +330 -0
  117. data/doc/classes/Dnsruby/Name.src/M000104.html +28 -0
  118. data/doc/classes/Dnsruby/Name.src/M000105.html +20 -0
  119. data/doc/classes/Dnsruby/Name.src/M000106.html +18 -0
  120. data/doc/classes/Dnsruby/Name.src/M000107.html +21 -0
  121. data/doc/classes/Dnsruby/Name.src/M000108.html +22 -0
  122. data/doc/classes/Dnsruby/Name.src/M000109.html +18 -0
  123. data/doc/classes/Dnsruby/Name/Label.html +300 -0
  124. data/doc/classes/Dnsruby/Name/Label.src/M000110.html +21 -0
  125. data/doc/classes/Dnsruby/Name/Label.src/M000111.html +18 -0
  126. data/doc/classes/Dnsruby/Name/Label.src/M000112.html +22 -0
  127. data/doc/classes/Dnsruby/Name/Label.src/M000113.html +18 -0
  128. data/doc/classes/Dnsruby/Name/Label.src/M000114.html +18 -0
  129. data/doc/classes/Dnsruby/Name/Label.src/M000115.html +18 -0
  130. data/doc/classes/Dnsruby/Name/Label.src/M000116.html +18 -0
  131. data/doc/classes/Dnsruby/Name/Label.src/M000117.html +18 -0
  132. data/doc/classes/Dnsruby/Name/Label.src/M000118.html +18 -0
  133. data/doc/classes/Dnsruby/NotImp.html +119 -0
  134. data/doc/classes/Dnsruby/OpCode.html +146 -0
  135. data/doc/classes/Dnsruby/OtherResolvError.html +119 -0
  136. data/doc/classes/Dnsruby/QTypes.html +146 -0
  137. data/doc/classes/Dnsruby/Question.html +301 -0
  138. data/doc/classes/Dnsruby/Question.src/M000226.html +47 -0
  139. data/doc/classes/Dnsruby/Question.src/M000227.html +18 -0
  140. data/doc/classes/Dnsruby/Question.src/M000228.html +18 -0
  141. data/doc/classes/Dnsruby/Question.src/M000229.html +32 -0
  142. data/doc/classes/Dnsruby/Question.src/M000230.html +18 -0
  143. data/doc/classes/Dnsruby/RCode.html +211 -0
  144. data/doc/classes/Dnsruby/RR.html +648 -0
  145. data/doc/classes/Dnsruby/RR.src/M000001.html +18 -0
  146. data/doc/classes/Dnsruby/RR.src/M000002.html +22 -0
  147. data/doc/classes/Dnsruby/RR.src/M000003.html +18 -0
  148. data/doc/classes/Dnsruby/RR.src/M000004.html +18 -0
  149. data/doc/classes/Dnsruby/RR.src/M000005.html +26 -0
  150. data/doc/classes/Dnsruby/RR.src/M000006.html +18 -0
  151. data/doc/classes/Dnsruby/RR.src/M000007.html +36 -0
  152. data/doc/classes/Dnsruby/RR.src/M000008.html +100 -0
  153. data/doc/classes/Dnsruby/RR.src/M000009.html +18 -0
  154. data/doc/classes/Dnsruby/RR.src/M000010.html +18 -0
  155. data/doc/classes/Dnsruby/RR.src/M000011.html +22 -0
  156. data/doc/classes/Dnsruby/RR.src/M000012.html +29 -0
  157. data/doc/classes/Dnsruby/RR.src/M000013.html +24 -0
  158. data/doc/classes/Dnsruby/RR/ANY.html +133 -0
  159. data/doc/classes/Dnsruby/RR/CERT.html +180 -0
  160. data/doc/classes/Dnsruby/RR/CERT/CertificateTypes.html +169 -0
  161. data/doc/classes/Dnsruby/RR/CNAME.html +151 -0
  162. data/doc/classes/Dnsruby/RR/DNAME.html +150 -0
  163. data/doc/classes/Dnsruby/RR/DNSKEY.html +422 -0
  164. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000044.html +20 -0
  165. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000045.html +21 -0
  166. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000046.html +28 -0
  167. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000047.html +22 -0
  168. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000048.html +18 -0
  169. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000049.html +22 -0
  170. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000050.html +18 -0
  171. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000051.html +26 -0
  172. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000052.html +38 -0
  173. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000053.html +45 -0
  174. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000054.html +21 -0
  175. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000055.html +24 -0
  176. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000056.html +32 -0
  177. data/doc/classes/Dnsruby/RR/DNSKEY.src/M000057.html +24 -0
  178. data/doc/classes/Dnsruby/RR/DS.html +286 -0
  179. data/doc/classes/Dnsruby/RR/DS.src/M000039.html +22 -0
  180. data/doc/classes/Dnsruby/RR/DS.src/M000040.html +28 -0
  181. data/doc/classes/Dnsruby/RR/DS.src/M000041.html +24 -0
  182. data/doc/classes/Dnsruby/RR/DS.src/M000042.html +28 -0
  183. data/doc/classes/Dnsruby/RR/DS.src/M000043.html +36 -0
  184. data/doc/classes/Dnsruby/RR/DomainName.html +175 -0
  185. data/doc/classes/Dnsruby/RR/DomainName.src/M000083.html +18 -0
  186. data/doc/classes/Dnsruby/RR/Generic.html +133 -0
  187. data/doc/classes/Dnsruby/RR/HINFO.html +155 -0
  188. data/doc/classes/Dnsruby/RR/IN.html +155 -0
  189. data/doc/classes/Dnsruby/RR/IN/A.html +200 -0
  190. data/doc/classes/Dnsruby/RR/IN/A.src/M000017.html +18 -0
  191. data/doc/classes/Dnsruby/RR/IN/A.src/M000018.html +18 -0
  192. data/doc/classes/Dnsruby/RR/IN/A.src/M000019.html +18 -0
  193. data/doc/classes/Dnsruby/RR/IN/AAAA.html +139 -0
  194. data/doc/classes/Dnsruby/RR/IN/AFSDB.html +145 -0
  195. data/doc/classes/Dnsruby/RR/IN/PX.html +143 -0
  196. data/doc/classes/Dnsruby/RR/IN/SRV.html +238 -0
  197. data/doc/classes/Dnsruby/RR/IN/SRV.src/M000014.html +29 -0
  198. data/doc/classes/Dnsruby/RR/IN/SRV.src/M000015.html +26 -0
  199. data/doc/classes/Dnsruby/RR/IN/SRV.src/M000016.html +22 -0
  200. data/doc/classes/Dnsruby/RR/IN/WKS.html +166 -0
  201. data/doc/classes/Dnsruby/RR/IN/WKS.src/M000020.html +20 -0
  202. data/doc/classes/Dnsruby/RR/ISDN.html +155 -0
  203. data/doc/classes/Dnsruby/RR/LOC.html +395 -0
  204. data/doc/classes/Dnsruby/RR/LOC.src/M000025.html +32 -0
  205. data/doc/classes/Dnsruby/RR/LOC.src/M000026.html +23 -0
  206. data/doc/classes/Dnsruby/RR/LOC.src/M000027.html +25 -0
  207. data/doc/classes/Dnsruby/RR/LOC.src/M000028.html +21 -0
  208. data/doc/classes/Dnsruby/RR/LOC.src/M000029.html +20 -0
  209. data/doc/classes/Dnsruby/RR/LOC.src/M000030.html +23 -0
  210. data/doc/classes/Dnsruby/RR/MB.html +150 -0
  211. data/doc/classes/Dnsruby/RR/MG.html +150 -0
  212. data/doc/classes/Dnsruby/RR/MINFO.html +156 -0
  213. data/doc/classes/Dnsruby/RR/MR.html +150 -0
  214. data/doc/classes/Dnsruby/RR/MX.html +155 -0
  215. data/doc/classes/Dnsruby/RR/NAPTR.html +190 -0
  216. data/doc/classes/Dnsruby/RR/NS.html +151 -0
  217. data/doc/classes/Dnsruby/RR/NSAP.html +293 -0
  218. data/doc/classes/Dnsruby/RR/NSAP.src/M000093.html +19 -0
  219. data/doc/classes/Dnsruby/RR/NSAP.src/M000094.html +19 -0
  220. data/doc/classes/Dnsruby/RR/NSAP.src/M000095.html +22 -0
  221. data/doc/classes/Dnsruby/RR/NSAP.src/M000096.html +31 -0
  222. data/doc/classes/Dnsruby/RR/NSEC.html +301 -0
  223. data/doc/classes/Dnsruby/RR/NSEC.src/M000031.html +19 -0
  224. data/doc/classes/Dnsruby/RR/NSEC.src/M000032.html +18 -0
  225. data/doc/classes/Dnsruby/RR/NSEC.src/M000033.html +34 -0
  226. data/doc/classes/Dnsruby/RR/NSEC.src/M000034.html +18 -0
  227. data/doc/classes/Dnsruby/RR/NSEC.src/M000035.html +71 -0
  228. data/doc/classes/Dnsruby/RR/NSEC.src/M000036.html +18 -0
  229. data/doc/classes/Dnsruby/RR/NSEC.src/M000037.html +80 -0
  230. data/doc/classes/Dnsruby/RR/NSEC.src/M000038.html +23 -0
  231. data/doc/classes/Dnsruby/RR/NSEC3.html +366 -0
  232. data/doc/classes/Dnsruby/RR/NSEC3.src/M000085.html +28 -0
  233. data/doc/classes/Dnsruby/RR/NSEC3.src/M000086.html +18 -0
  234. data/doc/classes/Dnsruby/RR/NSEC3.src/M000087.html +18 -0
  235. data/doc/classes/Dnsruby/RR/NSEC3.src/M000088.html +22 -0
  236. data/doc/classes/Dnsruby/RR/NSEC3.src/M000089.html +18 -0
  237. data/doc/classes/Dnsruby/RR/NSEC3.src/M000090.html +21 -0
  238. data/doc/classes/Dnsruby/RR/NSEC3.src/M000091.html +21 -0
  239. data/doc/classes/Dnsruby/RR/NSEC3.src/M000092.html +29 -0
  240. data/doc/classes/Dnsruby/RR/NSEC3PARAM.html +279 -0
  241. data/doc/classes/Dnsruby/RR/NSEC3PARAM.src/M000077.html +28 -0
  242. data/doc/classes/Dnsruby/RR/NSEC3PARAM.src/M000078.html +18 -0
  243. data/doc/classes/Dnsruby/RR/NSEC3PARAM.src/M000079.html +22 -0
  244. data/doc/classes/Dnsruby/RR/NSEC3PARAM.src/M000080.html +21 -0
  245. data/doc/classes/Dnsruby/RR/NSEC3PARAM.src/M000081.html +25 -0
  246. data/doc/classes/Dnsruby/RR/PTR.html +132 -0
  247. data/doc/classes/Dnsruby/RR/RP.html +183 -0
  248. data/doc/classes/Dnsruby/RR/RP.src/M000082.html +19 -0
  249. data/doc/classes/Dnsruby/RR/RRSIG.html +357 -0
  250. data/doc/classes/Dnsruby/RR/RRSIG.src/M000097.html +26 -0
  251. data/doc/classes/Dnsruby/RR/RRSIG.src/M000098.html +28 -0
  252. data/doc/classes/Dnsruby/RR/RRSIG.src/M000099.html +23 -0
  253. data/doc/classes/Dnsruby/RR/RRSIG.src/M000100.html +23 -0
  254. data/doc/classes/Dnsruby/RR/RRSIG.src/M000101.html +46 -0
  255. data/doc/classes/Dnsruby/RR/RRSIG.src/M000102.html +50 -0
  256. data/doc/classes/Dnsruby/RR/RRSIG.src/M000103.html +27 -0
  257. data/doc/classes/Dnsruby/RR/RT.html +155 -0
  258. data/doc/classes/Dnsruby/RR/SOA.html +233 -0
  259. data/doc/classes/Dnsruby/RR/SOA.src/M000066.html +24 -0
  260. data/doc/classes/Dnsruby/RR/SOA.src/M000067.html +27 -0
  261. data/doc/classes/Dnsruby/RR/SPF.html +138 -0
  262. data/doc/classes/Dnsruby/RR/TKEY.html +313 -0
  263. data/doc/classes/Dnsruby/RR/TKEY.src/M000021.html +19 -0
  264. data/doc/classes/Dnsruby/RR/TKEY.src/M000022.html +29 -0
  265. data/doc/classes/Dnsruby/RR/TKEY.src/M000023.html +21 -0
  266. data/doc/classes/Dnsruby/RR/TKEY.src/M000024.html +29 -0
  267. data/doc/classes/Dnsruby/RR/TSIG.html +524 -0
  268. data/doc/classes/Dnsruby/RR/TSIG.src/M000068.html +24 -0
  269. data/doc/classes/Dnsruby/RR/TSIG.src/M000069.html +32 -0
  270. data/doc/classes/Dnsruby/RR/TSIG.src/M000070.html +54 -0
  271. data/doc/classes/Dnsruby/RR/TSIG.src/M000071.html +121 -0
  272. data/doc/classes/Dnsruby/RR/TSIG.src/M000072.html +33 -0
  273. data/doc/classes/Dnsruby/RR/TSIG.src/M000073.html +25 -0
  274. data/doc/classes/Dnsruby/RR/TSIG.src/M000074.html +36 -0
  275. data/doc/classes/Dnsruby/RR/TSIG.src/M000075.html +22 -0
  276. data/doc/classes/Dnsruby/RR/TSIG.src/M000076.html +29 -0
  277. data/doc/classes/Dnsruby/RR/TXT.html +233 -0
  278. data/doc/classes/Dnsruby/RR/TXT.src/M000061.html +18 -0
  279. data/doc/classes/Dnsruby/RR/TXT.src/M000062.html +18 -0
  280. data/doc/classes/Dnsruby/RR/TXT.src/M000063.html +20 -0
  281. data/doc/classes/Dnsruby/RR/TXT.src/M000064.html +27 -0
  282. data/doc/classes/Dnsruby/RR/TXT.src/M000065.html +25 -0
  283. data/doc/classes/Dnsruby/RR/X25.html +203 -0
  284. data/doc/classes/Dnsruby/RR/X25.src/M000058.html +18 -0
  285. data/doc/classes/Dnsruby/RR/X25.src/M000059.html +18 -0
  286. data/doc/classes/Dnsruby/RR/X25.src/M000060.html +22 -0
  287. data/doc/classes/Dnsruby/RRSet.html +404 -0
  288. data/doc/classes/Dnsruby/RRSet.src/M000211.html +23 -0
  289. data/doc/classes/Dnsruby/RRSet.src/M000212.html +18 -0
  290. data/doc/classes/Dnsruby/RRSet.src/M000213.html +18 -0
  291. data/doc/classes/Dnsruby/RRSet.src/M000214.html +47 -0
  292. data/doc/classes/Dnsruby/RRSet.src/M000215.html +42 -0
  293. data/doc/classes/Dnsruby/RRSet.src/M000216.html +18 -0
  294. data/doc/classes/Dnsruby/RRSet.src/M000217.html +20 -0
  295. data/doc/classes/Dnsruby/RRSet.src/M000218.html +18 -0
  296. data/doc/classes/Dnsruby/RRSet.src/M000219.html +18 -0
  297. data/doc/classes/Dnsruby/RRSet.src/M000220.html +18 -0
  298. data/doc/classes/Dnsruby/RRSet.src/M000221.html +18 -0
  299. data/doc/classes/Dnsruby/RRSet.src/M000222.html +22 -0
  300. data/doc/classes/Dnsruby/RRSet.src/M000223.html +18 -0
  301. data/doc/classes/Dnsruby/RRSet.src/M000224.html +22 -0
  302. data/doc/classes/Dnsruby/RRSet.src/M000225.html +18 -0
  303. data/doc/classes/Dnsruby/Refused.html +119 -0
  304. data/doc/classes/Dnsruby/Resolv.html +401 -0
  305. data/doc/classes/Dnsruby/Resolv.src/M000159.html +18 -0
  306. data/doc/classes/Dnsruby/Resolv.src/M000160.html +18 -0
  307. data/doc/classes/Dnsruby/Resolv.src/M000161.html +18 -0
  308. data/doc/classes/Dnsruby/Resolv.src/M000162.html +18 -0
  309. data/doc/classes/Dnsruby/Resolv.src/M000163.html +18 -0
  310. data/doc/classes/Dnsruby/Resolv.src/M000164.html +18 -0
  311. data/doc/classes/Dnsruby/Resolv.src/M000165.html +18 -0
  312. data/doc/classes/Dnsruby/Resolv.src/M000166.html +19 -0
  313. data/doc/classes/Dnsruby/Resolv.src/M000167.html +20 -0
  314. data/doc/classes/Dnsruby/Resolv.src/M000168.html +29 -0
  315. data/doc/classes/Dnsruby/Resolv.src/M000169.html +19 -0
  316. data/doc/classes/Dnsruby/Resolv.src/M000170.html +20 -0
  317. data/doc/classes/Dnsruby/Resolv.src/M000171.html +25 -0
  318. data/doc/classes/Dnsruby/ResolvError.html +117 -0
  319. data/doc/classes/Dnsruby/ResolvTimeout.html +117 -0
  320. data/doc/classes/Dnsruby/Resolver.html +1055 -0
  321. data/doc/classes/Dnsruby/Resolver.src/M000271.html +21 -0
  322. data/doc/classes/Dnsruby/Resolver.src/M000272.html +27 -0
  323. data/doc/classes/Dnsruby/Resolver.src/M000273.html +28 -0
  324. data/doc/classes/Dnsruby/Resolver.src/M000274.html +18 -0
  325. data/doc/classes/Dnsruby/Resolver.src/M000275.html +51 -0
  326. data/doc/classes/Dnsruby/Resolver.src/M000276.html +21 -0
  327. data/doc/classes/Dnsruby/Resolver.src/M000277.html +22 -0
  328. data/doc/classes/Dnsruby/Resolver.src/M000278.html +18 -0
  329. data/doc/classes/Dnsruby/Resolver.src/M000279.html +20 -0
  330. data/doc/classes/Dnsruby/Resolver.src/M000280.html +19 -0
  331. data/doc/classes/Dnsruby/Resolver.src/M000281.html +19 -0
  332. data/doc/classes/Dnsruby/Resolver.src/M000282.html +19 -0
  333. data/doc/classes/Dnsruby/Resolver.src/M000283.html +19 -0
  334. data/doc/classes/Dnsruby/Resolver.src/M000284.html +19 -0
  335. data/doc/classes/Dnsruby/Resolver.src/M000285.html +19 -0
  336. data/doc/classes/Dnsruby/Resolver.src/M000286.html +19 -0
  337. data/doc/classes/Dnsruby/Resolver.src/M000287.html +19 -0
  338. data/doc/classes/Dnsruby/Resolver.src/M000288.html +19 -0
  339. data/doc/classes/Dnsruby/Resolver.src/M000289.html +19 -0
  340. data/doc/classes/Dnsruby/Resolver.src/M000290.html +19 -0
  341. data/doc/classes/Dnsruby/Resolver.src/M000291.html +19 -0
  342. data/doc/classes/Dnsruby/Resolver.src/M000292.html +26 -0
  343. data/doc/classes/Dnsruby/Resolver.src/M000293.html +18 -0
  344. data/doc/classes/Dnsruby/Resolver.src/M000294.html +23 -0
  345. data/doc/classes/Dnsruby/Resolver.src/M000295.html +18 -0
  346. data/doc/classes/Dnsruby/ServFail.html +119 -0
  347. data/doc/classes/Dnsruby/SingleResolver.html +674 -0
  348. data/doc/classes/Dnsruby/SingleResolver.src/M000172.html +18 -0
  349. data/doc/classes/Dnsruby/SingleResolver.src/M000173.html +24 -0
  350. data/doc/classes/Dnsruby/SingleResolver.src/M000174.html +36 -0
  351. data/doc/classes/Dnsruby/SingleResolver.src/M000175.html +18 -0
  352. data/doc/classes/Dnsruby/SingleResolver.src/M000176.html +19 -0
  353. data/doc/classes/Dnsruby/SingleResolver.src/M000177.html +50 -0
  354. data/doc/classes/Dnsruby/SingleResolver.src/M000178.html +19 -0
  355. data/doc/classes/Dnsruby/SingleResolver.src/M000179.html +21 -0
  356. data/doc/classes/Dnsruby/SingleResolver.src/M000180.html +25 -0
  357. data/doc/classes/Dnsruby/SingleResolver.src/M000181.html +54 -0
  358. data/doc/classes/Dnsruby/SingleResolver.src/M000182.html +27 -0
  359. data/doc/classes/Dnsruby/SingleResolver.src/M000183.html +27 -0
  360. data/doc/classes/Dnsruby/SingleResolver.src/M000184.html +35 -0
  361. data/doc/classes/Dnsruby/SingleResolver.src/M000185.html +21 -0
  362. data/doc/classes/Dnsruby/TheLog.html +196 -0
  363. data/doc/classes/Dnsruby/TheLog.src/M000246.html +20 -0
  364. data/doc/classes/Dnsruby/TheLog.src/M000247.html +20 -0
  365. data/doc/classes/Dnsruby/TheLog.src/M000248.html +20 -0
  366. data/doc/classes/Dnsruby/Types.html +436 -0
  367. data/doc/classes/Dnsruby/Update.html +368 -0
  368. data/doc/classes/Dnsruby/Update.src/M000253.html +32 -0
  369. data/doc/classes/Dnsruby/Update.src/M000254.html +36 -0
  370. data/doc/classes/Dnsruby/Update.src/M000255.html +32 -0
  371. data/doc/classes/Dnsruby/Update.src/M000256.html +41 -0
  372. data/doc/classes/Dnsruby/Update.src/M000257.html +34 -0
  373. data/doc/classes/Dnsruby/VerifyError.html +119 -0
  374. data/doc/classes/Dnsruby/ZoneTransfer.html +300 -0
  375. data/doc/classes/Dnsruby/ZoneTransfer.src/M000143.html +18 -0
  376. data/doc/classes/Dnsruby/ZoneTransfer.src/M000144.html +24 -0
  377. data/doc/classes/Dnsruby/ZoneTransfer.src/M000145.html +35 -0
  378. data/doc/classes/Dnsruby/ZoneTransfer/Delta.html +200 -0
  379. data/doc/classes/Dnsruby/ZoneTransfer/Delta.src/M000146.html +19 -0
  380. data/doc/classes/Dnsruby/ZoneTransfer/Delta.src/M000147.html +19 -0
  381. data/doc/created.rid +1 -0
  382. data/doc/files/lib/Dnsruby/Config_rb.html +101 -0
  383. data/doc/files/lib/Dnsruby/DNS_rb.html +110 -0
  384. data/doc/files/lib/Dnsruby/Hosts_rb.html +108 -0
  385. data/doc/files/lib/Dnsruby/Resolver_rb.html +109 -0
  386. data/doc/files/lib/Dnsruby/SingleResolver_rb.html +108 -0
  387. data/doc/files/lib/Dnsruby/TheLog_rb.html +110 -0
  388. data/doc/files/lib/Dnsruby/code_mapper_rb.html +101 -0
  389. data/doc/files/lib/Dnsruby/dnssec_rb.html +107 -0
  390. data/doc/files/lib/Dnsruby/event_machine_interface_rb.html +108 -0
  391. data/doc/files/lib/Dnsruby/ipv4_rb.html +101 -0
  392. data/doc/files/lib/Dnsruby/ipv6_rb.html +101 -0
  393. data/doc/files/lib/Dnsruby/message_rb.html +109 -0
  394. data/doc/files/lib/Dnsruby/name_rb.html +101 -0
  395. data/doc/files/lib/Dnsruby/resource/AAAA_rb.html +101 -0
  396. data/doc/files/lib/Dnsruby/resource/AFSDB_rb.html +101 -0
  397. data/doc/files/lib/Dnsruby/resource/A_rb.html +101 -0
  398. data/doc/files/lib/Dnsruby/resource/CERT_rb.html +101 -0
  399. data/doc/files/lib/Dnsruby/resource/DNSKEY_rb.html +101 -0
  400. data/doc/files/lib/Dnsruby/resource/DS_rb.html +101 -0
  401. data/doc/files/lib/Dnsruby/resource/HINFO_rb.html +101 -0
  402. data/doc/files/lib/Dnsruby/resource/IN_rb.html +112 -0
  403. data/doc/files/lib/Dnsruby/resource/ISDN_rb.html +101 -0
  404. data/doc/files/lib/Dnsruby/resource/LOC_rb.html +101 -0
  405. data/doc/files/lib/Dnsruby/resource/MINFO_rb.html +101 -0
  406. data/doc/files/lib/Dnsruby/resource/MX_rb.html +101 -0
  407. data/doc/files/lib/Dnsruby/resource/NAPTR_rb.html +101 -0
  408. data/doc/files/lib/Dnsruby/resource/NSAP_rb.html +101 -0
  409. data/doc/files/lib/Dnsruby/resource/NSEC3PARAM_rb.html +101 -0
  410. data/doc/files/lib/Dnsruby/resource/NSEC3_rb.html +101 -0
  411. data/doc/files/lib/Dnsruby/resource/NSEC_rb.html +101 -0
  412. data/doc/files/lib/Dnsruby/resource/OPT_rb.html +101 -0
  413. data/doc/files/lib/Dnsruby/resource/PX_rb.html +101 -0
  414. data/doc/files/lib/Dnsruby/resource/RP_rb.html +101 -0
  415. data/doc/files/lib/Dnsruby/resource/RRSIG_rb.html +101 -0
  416. data/doc/files/lib/Dnsruby/resource/RT_rb.html +101 -0
  417. data/doc/files/lib/Dnsruby/resource/SOA_rb.html +101 -0
  418. data/doc/files/lib/Dnsruby/resource/SPF_rb.html +101 -0
  419. data/doc/files/lib/Dnsruby/resource/SRV_rb.html +101 -0
  420. data/doc/files/lib/Dnsruby/resource/TKEY_rb.html +101 -0
  421. data/doc/files/lib/Dnsruby/resource/TSIG_rb.html +114 -0
  422. data/doc/files/lib/Dnsruby/resource/TXT_rb.html +108 -0
  423. data/doc/files/lib/Dnsruby/resource/X25_rb.html +101 -0
  424. data/doc/files/lib/Dnsruby/resource/domain_name_rb.html +101 -0
  425. data/doc/files/lib/Dnsruby/resource/generic_rb.html +131 -0
  426. data/doc/files/lib/Dnsruby/resource/resource_rb.html +110 -0
  427. data/doc/files/lib/Dnsruby/select_thread_rb.html +111 -0
  428. data/doc/files/lib/Dnsruby/update_rb.html +101 -0
  429. data/doc/files/lib/Dnsruby/zone_transfer_rb.html +101 -0
  430. data/doc/files/lib/dnsruby_rb.html +118 -0
  431. data/doc/fr_class_index.html +108 -0
  432. data/doc/fr_file_index.html +75 -0
  433. data/doc/fr_method_index.html +321 -0
  434. data/doc/index.html +24 -0
  435. data/lib/Dnsruby/DNS.rb +3 -3
  436. data/lib/Dnsruby/Resolver.rb +11 -2
  437. data/lib/Dnsruby/SingleResolver.rb +28 -20
  438. data/lib/Dnsruby/code_mapper.rb +9 -4
  439. data/lib/Dnsruby/dnssec.rb +6 -3
  440. data/lib/Dnsruby/message.rb +108 -32
  441. data/lib/Dnsruby/resource/DLV.rb +27 -0
  442. data/lib/Dnsruby/resource/DNSKEY.rb +29 -7
  443. data/lib/Dnsruby/resource/DS.rb +97 -18
  444. data/lib/Dnsruby/resource/DS.rb.new +202 -0
  445. data/lib/Dnsruby/resource/DS.rb.orig +162 -0
  446. data/lib/Dnsruby/resource/NSEC.rb +22 -6
  447. data/lib/Dnsruby/resource/OPT.rb +14 -13
  448. data/lib/Dnsruby/resource/PX.rb +1 -1
  449. data/lib/Dnsruby/resource/RRSIG.rb +17 -9
  450. data/lib/Dnsruby/resource/RT.rb +1 -1
  451. data/lib/Dnsruby/resource/TSIG.rb +4 -0
  452. data/lib/Dnsruby/resource/generic.rb +2 -1
  453. data/lib/Dnsruby/resource/resource.rb +23 -8
  454. data/lib/Dnsruby/select_thread.rb +15 -7
  455. data/lib/Dnsruby/update.rb +3 -3
  456. data/lib/Dnsruby/zone_transfer.rb +1 -1
  457. data/lib/dnsruby.rb +4 -2
  458. data/test/tc_dns.rb +1 -1
  459. data/test/tc_ds.rb +47 -4
  460. data/test/tc_em_deferrable.rb +38 -0
  461. data/test/tc_event_machine_res.rb +1 -1
  462. data/test/tc_header.rb +2 -2
  463. data/test/tc_inet6.rb +170 -0
  464. data/test/tc_nsec3.rb +6 -5
  465. data/test/tc_packet.rb +18 -4
  466. data/test/tc_queue.rb +17 -0
  467. data/test/tc_resolver.rb +14 -14
  468. data/test/tc_rr-opt.rb +21 -2
  469. data/test/tc_rr.rb +4 -0
  470. data/test/tc_rrset.rb +2 -2
  471. data/test/tc_rrsig.rb +2 -2
  472. data/test/tc_tcp.rb +1 -1
  473. data/test/tc_tsig.rb +6 -6
  474. data/test/ts_offline.rb +17 -2
  475. data/test/ts_online.rb +4 -0
  476. metadata +496 -3
@@ -0,0 +1,19 @@
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>other_data= (Dnsruby::RR::TKEY)</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/Dnsruby/resource/TKEY.rb, line 92</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">other_data=</span>(<span class="ruby-identifier">od</span>)
15
+ <span class="ruby-ivar">@other_data</span>=<span class="ruby-identifier">od</span>
16
+ <span class="ruby-ivar">@other_size</span>=<span class="ruby-ivar">@other_data</span>.<span class="ruby-identifier">length</span>
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,29 @@
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 (Dnsruby::RR::TKEY)</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/Dnsruby/resource/TKEY.rb, line 97</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
15
+ <span class="ruby-ivar">@algorithm</span> = <span class="ruby-value str">&quot;gss.microsoft.com&quot;</span>
16
+ <span class="ruby-ivar">@inception</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
17
+ <span class="ruby-ivar">@expiration</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span> <span class="ruby-operator">+</span> <span class="ruby-value">24</span><span class="ruby-operator">*</span><span class="ruby-value">60</span><span class="ruby-operator">*</span><span class="ruby-value">60</span>
18
+ <span class="ruby-ivar">@mode</span> = <span class="ruby-constant">Modes</span>.<span class="ruby-constant">GSSAPI</span>
19
+ <span class="ruby-ivar">@error</span> = <span class="ruby-value">0</span>
20
+ <span class="ruby-ivar">@other_size</span> = <span class="ruby-value">0</span>
21
+ <span class="ruby-ivar">@other_data</span> = <span class="ruby-value str">&quot;&quot;</span>
22
+
23
+ <span class="ruby-comment cmt"># RFC 2845 Section 2.3</span>
24
+ <span class="ruby-ivar">@klass</span> = <span class="ruby-constant">Classes</span>.<span class="ruby-constant">ANY</span>
25
+ <span class="ruby-comment cmt"># RFC 2845 Section 2.3</span>
26
+ <span class="ruby-ivar">@ttl</span> = <span class="ruby-value">0</span>
27
+ <span class="ruby-keyword kw">end</span></pre>
28
+ </body>
29
+ </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>from_hash (Dnsruby::RR::TKEY)</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/Dnsruby/resource/TKEY.rb, line 112</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">from_hash</span>(<span class="ruby-identifier">hash</span>)
15
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">hash</span>)
16
+ <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">algorithm</span>)
17
+ <span class="ruby-ivar">@algorithm</span> = <span class="ruby-constant">Name</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:algorithm</span>])
18
+ <span class="ruby-keyword kw">end</span>
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,29 @@
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>rdata_to_string (Dnsruby::RR::TKEY)</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/Dnsruby/resource/TKEY.rb, line 128</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rdata_to_string</span>
15
+ <span class="ruby-identifier">rdatastr</span>=<span class="ruby-value str">&quot;&quot;</span>
16
+
17
+ <span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@algorithm!</span>=<span class="ruby-keyword kw">nil</span>)
18
+ <span class="ruby-identifier">error</span> = <span class="ruby-ivar">@error</span>
19
+ <span class="ruby-identifier">error</span> = <span class="ruby-value str">&quot;UNDEFINED&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">error!</span>=<span class="ruby-keyword kw">nil</span>
20
+ <span class="ruby-identifier">rdatastr</span> = <span class="ruby-node">&quot;#{@algorithm}. #{error}&quot;</span>
21
+ <span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@other_size</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@other_size</span> <span class="ruby-operator">&gt;</span><span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@other_data!</span>=<span class="ruby-keyword kw">nil</span>)
22
+ <span class="ruby-identifier">rdatastr</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot; #{@other_data}&quot;</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-keyword kw">end</span>
25
+
26
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rdatastr</span>
27
+ <span class="ruby-keyword kw">end</span></pre>
28
+ </body>
29
+ </html>
@@ -0,0 +1,524 @@
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: Dnsruby::RR::TSIG</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">Dnsruby::RR::TSIG</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/Dnsruby/resource/TSIG_rb.html">
59
+ lib/Dnsruby/resource/TSIG.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
+ RR
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
+ <div id="description">
82
+ <p>
83
+ <a href="TSIG.html">TSIG</a> implements RFC2845.
84
+ </p>
85
+ <p>
86
+ &quot;This protocol allows for transaction level authentication using
87
+ shared secrets and one way hashing. It can be used to authenticate dynamic
88
+ updates as coming from an approved client, or to authenticate responses as
89
+ coming from an approved recursive name server.&quot;
90
+ </p>
91
+ <p>
92
+ A <a href="TSIG.html">Dnsruby::RR::TSIG</a> can represent the data present
93
+ in a <a href="TSIG.html">TSIG</a> <a href="../RR.html">RR</a>. However, it
94
+ can also represent the data (specified in RFC2845) used to sign or <a
95
+ href="TSIG.html#M000070">verify</a> a <a href="../DNS.html">DNS</a>
96
+ message.
97
+ </p>
98
+ <p>
99
+ Example code :
100
+ </p>
101
+ <pre>
102
+ res = Dnsruby::Resolver.new(&quot;ns0.validation-test-servers.nominet.org.uk&quot;)
103
+
104
+ # Now configure the resolver with the TSIG key for signing/verifying
105
+ KEY_NAME=&quot;rubytsig&quot;
106
+ KEY = &quot;8n6gugn4aJ7MazyNlMccGKH1WxD2B3UvN/O/RA6iBupO2/03u9CTa3Ewz3gBWTSBCH3crY4Kk+tigNdeJBAvrw==&quot;
107
+ res.tsig=KEY_NAME, KEY
108
+
109
+ update = Dnsruby::Update.new(&quot;validation-test-servers.nominet.org.uk&quot;)
110
+ # Generate update record name, and test it has been made. Then delete it and check it has been deleted
111
+ update_name = generate_update_name
112
+ update.absent(update_name)
113
+ update.add(update_name, 'TXT', 100, &quot;test signed update&quot;)
114
+
115
+ # Resolver will automatically sign message and verify response
116
+ response = res.send_message(update)
117
+ assert(response.verified?) # Check that the response has been verified
118
+ </pre>
119
+
120
+ </div>
121
+
122
+
123
+ </div>
124
+
125
+ <div id="method-list">
126
+ <h3 class="section-bar">Methods</h3>
127
+
128
+ <div class="name-list">
129
+ <a href="#M000074">algorithm=</a>&nbsp;&nbsp;
130
+ <a href="#M000068">apply</a>&nbsp;&nbsp;
131
+ <a href="#M000069">calculate_mac</a>&nbsp;&nbsp;
132
+ <a href="#M000075">fudge=</a>&nbsp;&nbsp;
133
+ <a href="#M000072">init_defaults</a>&nbsp;&nbsp;
134
+ <a href="#M000073">name=</a>&nbsp;&nbsp;
135
+ <a href="#M000076">rdata_to_string</a>&nbsp;&nbsp;
136
+ <a href="#M000070">verify</a>&nbsp;&nbsp;
137
+ <a href="#M000071">verify_envelope</a>&nbsp;&nbsp;
138
+ </div>
139
+ </div>
140
+
141
+ </div>
142
+
143
+
144
+ <!-- if includes -->
145
+
146
+ <div id="section">
147
+
148
+
149
+ <div id="constants-list">
150
+ <h3 class="section-bar">Constants</h3>
151
+
152
+ <div class="name-list">
153
+ <table summary="Constants">
154
+ <tr class="top-aligned-row context-row">
155
+ <td class="context-item-name">HMAC_MD5</td>
156
+ <td>=</td>
157
+ <td class="context-item-value">Name.create(&quot;HMAC-MD5.SIG-ALG.REG.INT.&quot;)</td>
158
+ </tr>
159
+ <tr class="top-aligned-row context-row">
160
+ <td class="context-item-name">HMAC_SHA1</td>
161
+ <td>=</td>
162
+ <td class="context-item-value">Name.create(&quot;hmac-sha1.&quot;)</td>
163
+ </tr>
164
+ <tr class="top-aligned-row context-row">
165
+ <td class="context-item-name">HMAC_SHA256</td>
166
+ <td>=</td>
167
+ <td class="context-item-value">Name.create(&quot;hmac-sha256.&quot;)</td>
168
+ </tr>
169
+ <tr class="top-aligned-row context-row">
170
+ <td class="context-item-name">DEFAULT_FUDGE</td>
171
+ <td>=</td>
172
+ <td class="context-item-value">300</td>
173
+ </tr>
174
+ <tr class="top-aligned-row context-row">
175
+ <td class="context-item-name">DEFAULT_ALGORITHM</td>
176
+ <td>=</td>
177
+ <td class="context-item-value">HMAC_MD5</td>
178
+ </tr>
179
+ <tr class="top-aligned-row context-row">
180
+ <td class="context-item-name">TypeValue</td>
181
+ <td>=</td>
182
+ <td class="context-item-value">Types::TSIG #:nodoc: all</td>
183
+ </tr>
184
+ </table>
185
+ </div>
186
+ </div>
187
+
188
+
189
+
190
+ <div id="attribute-list">
191
+ <h3 class="section-bar">Attributes</h3>
192
+
193
+ <div class="name-list">
194
+ <table>
195
+ <tr class="top-aligned-row context-row">
196
+ <td class="context-item-name">algorithm</td>
197
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
198
+ <td class="context-item-desc">
199
+ Gets or sets the domain name that specifies the name of the algorithm. The
200
+ only algorithms currently supported are hmac-md5 and hmac-sha1.
201
+
202
+ <pre>
203
+ rr.algorithm=(algorithm_name)
204
+ print &quot;algorithm = &quot;, rr.algorithm, &quot;\n&quot;
205
+ </pre>
206
+ </td>
207
+ </tr>
208
+ <tr class="top-aligned-row context-row">
209
+ <td class="context-item-name">error</td>
210
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
211
+ <td class="context-item-desc">
212
+ Returns the RCODE covering <a href="TSIG.html">TSIG</a> processing. Common
213
+ values are NOERROR, BADSIG, BADKEY, and BADTIME. See RFC 2845 for details.
214
+
215
+ <pre>
216
+ print &quot;error = &quot;, rr.error, &quot;\n&quot;
217
+ </pre>
218
+ </td>
219
+ </tr>
220
+ <tr class="top-aligned-row context-row">
221
+ <td class="context-item-name">fudge</td>
222
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
223
+ <td class="context-item-desc">
224
+ Gets or sets the &quot;fudge&quot;, i.e., the seconds of error permitted in
225
+ the signing time.
226
+
227
+ <p>
228
+ The default fudge is 300 seconds.
229
+ </p>
230
+ <pre>
231
+ rr.fudge=(60)
232
+ print &quot;fudge = &quot;, rr.fudge, &quot;\n&quot;
233
+ </pre>
234
+ </td>
235
+ </tr>
236
+ <tr class="top-aligned-row context-row">
237
+ <td class="context-item-name">key</td>
238
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
239
+ <td class="context-item-desc">
240
+ Stores the secret key used for signing/verifying messages.
241
+
242
+ </td>
243
+ </tr>
244
+ <tr class="top-aligned-row context-row">
245
+ <td class="context-item-name">mac</td>
246
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
247
+ <td class="context-item-desc">
248
+ Returns the message authentication code (MAC) as a string of hex
249
+ characters. The programmer must call a Net::DNS::Packet object&#8216;s data
250
+ method before this will return anything meaningful.
251
+
252
+ <pre>
253
+ print &quot;MAC = &quot;, rr.mac, &quot;\n&quot;
254
+ </pre>
255
+ </td>
256
+ </tr>
257
+ <tr class="top-aligned-row context-row">
258
+ <td class="context-item-name">mac_size</td>
259
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
260
+ <td class="context-item-desc">
261
+ Returns the number of octets in the message authentication code (MAC). The
262
+ programmer must call a Net::DNS::Packet object&#8216;s data method before
263
+ this will return anything meaningful.
264
+
265
+ <pre>
266
+ print &quot;MAC size = &quot;, rr.mac_size, &quot;\n&quot;
267
+ </pre>
268
+ </td>
269
+ </tr>
270
+ <tr class="top-aligned-row context-row">
271
+ <td class="context-item-name">original_id</td>
272
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
273
+ <td class="context-item-desc">
274
+ Gets or sets the original message ID.
275
+
276
+ <pre>
277
+ rr.original_id(12345)
278
+ print &quot;original ID = &quot;, rr.original_id, &quot;\n&quot;
279
+ </pre>
280
+ </td>
281
+ </tr>
282
+ <tr class="top-aligned-row context-row">
283
+ <td class="context-item-name">other_data</td>
284
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
285
+ <td class="context-item-desc">
286
+ Returns the Other Data. This field should be empty unless the error is
287
+ BADTIME, in which case it will contain the server&#8216;s time as the
288
+ number of seconds since 1 Jan 1970 00:00:00 UTC.
289
+
290
+ <pre>
291
+ print &quot;other data = &quot;, rr.other_data, &quot;\n&quot;
292
+ </pre>
293
+ </td>
294
+ </tr>
295
+ <tr class="top-aligned-row context-row">
296
+ <td class="context-item-name">other_size</td>
297
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
298
+ <td class="context-item-desc">
299
+ Returns the length of the Other Data. Should be zero unless the error is
300
+ BADTIME.
301
+
302
+ <pre>
303
+ print &quot;other len = &quot;, rr.other_size, &quot;\n&quot;
304
+ </pre>
305
+ </td>
306
+ </tr>
307
+ <tr class="top-aligned-row context-row">
308
+ <td class="context-item-name">time_signed</td>
309
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
310
+ <td class="context-item-desc">
311
+ Gets or sets the signing time as the number of seconds since 1 Jan 1970
312
+ 00:00:00 UTC.
313
+
314
+ <p>
315
+ The default signing time is the current time.
316
+ </p>
317
+ <pre>
318
+ rr.time_signed=(time)
319
+ print &quot;time signed = &quot;, rr.time_signed, &quot;\n&quot;
320
+ </pre>
321
+ </td>
322
+ </tr>
323
+ </table>
324
+ </div>
325
+ </div>
326
+
327
+
328
+
329
+ <!-- if method_list -->
330
+ <div id="methods">
331
+ <h3 class="section-bar">Public Instance methods</h3>
332
+
333
+ <div id="method-M000074" class="method-detail">
334
+ <a name="M000074"></a>
335
+
336
+ <div class="method-heading">
337
+ <a href="TSIG.src/M000074.html" target="Code" class="method-signature"
338
+ onclick="popupCode('TSIG.src/M000074.html');return false;">
339
+ <span class="method-name">algorithm=</span><span class="method-args">(alg)</span>
340
+ </a>
341
+ </div>
342
+
343
+ <div class="method-description">
344
+ <p>
345
+ Set the algorithm to use to generate the HMAC Supported values are :
346
+ </p>
347
+ <ul>
348
+ <li>hmac-md5
349
+
350
+ </li>
351
+ <li>hmac-sha1
352
+
353
+ </li>
354
+ <li>hmac-sha256
355
+
356
+ </li>
357
+ </ul>
358
+ </div>
359
+ </div>
360
+
361
+ <div id="method-M000068" class="method-detail">
362
+ <a name="M000068"></a>
363
+
364
+ <div class="method-heading">
365
+ <a href="TSIG.src/M000068.html" target="Code" class="method-signature"
366
+ onclick="popupCode('TSIG.src/M000068.html');return false;">
367
+ <span class="method-name">apply</span><span class="method-args">(message, original_request=nil)</span>
368
+ </a>
369
+ </div>
370
+
371
+ <div class="method-description">
372
+ <p>
373
+ Generates a <a href="TSIG.html">TSIG</a> record and adds it to the message.
374
+ Takes an optional original_request argument for the case where this is a
375
+ response to a query (RFC2845 3.4.1)
376
+ </p>
377
+ <p>
378
+ Message#tsigstate will be set to :Signed.
379
+ </p>
380
+ </div>
381
+ </div>
382
+
383
+ <div id="method-M000069" class="method-detail">
384
+ <a name="M000069"></a>
385
+
386
+ <div class="method-heading">
387
+ <a href="TSIG.src/M000069.html" target="Code" class="method-signature"
388
+ onclick="popupCode('TSIG.src/M000069.html');return false;">
389
+ <span class="method-name">calculate_mac</span><span class="method-args">(algorithm, data)</span>
390
+ </a>
391
+ </div>
392
+
393
+ <div class="method-description">
394
+ </div>
395
+ </div>
396
+
397
+ <div id="method-M000075" class="method-detail">
398
+ <a name="M000075"></a>
399
+
400
+ <div class="method-heading">
401
+ <a href="TSIG.src/M000075.html" target="Code" class="method-signature"
402
+ onclick="popupCode('TSIG.src/M000075.html');return false;">
403
+ <span class="method-name">fudge=</span><span class="method-args">(f)</span>
404
+ </a>
405
+ </div>
406
+
407
+ <div class="method-description">
408
+ </div>
409
+ </div>
410
+
411
+ <div id="method-M000072" class="method-detail">
412
+ <a name="M000072"></a>
413
+
414
+ <div class="method-heading">
415
+ <a href="TSIG.src/M000072.html" target="Code" class="method-signature"
416
+ onclick="popupCode('TSIG.src/M000072.html');return false;">
417
+ <span class="method-name">init_defaults</span><span class="method-args">()</span>
418
+ </a>
419
+ </div>
420
+
421
+ <div class="method-description">
422
+ </div>
423
+ </div>
424
+
425
+ <div id="method-M000073" class="method-detail">
426
+ <a name="M000073"></a>
427
+
428
+ <div class="method-heading">
429
+ <a href="TSIG.src/M000073.html" target="Code" class="method-signature"
430
+ onclick="popupCode('TSIG.src/M000073.html');return false;">
431
+ <span class="method-name">name=</span><span class="method-args">(n)</span>
432
+ </a>
433
+ </div>
434
+
435
+ <div class="method-description">
436
+ </div>
437
+ </div>
438
+
439
+ <div id="method-M000076" class="method-detail">
440
+ <a name="M000076"></a>
441
+
442
+ <div class="method-heading">
443
+ <a href="TSIG.src/M000076.html" target="Code" class="method-signature"
444
+ onclick="popupCode('TSIG.src/M000076.html');return false;">
445
+ <span class="method-name">rdata_to_string</span><span class="method-args">()</span>
446
+ </a>
447
+ </div>
448
+
449
+ <div class="method-description">
450
+ </div>
451
+ </div>
452
+
453
+ <div id="method-M000070" class="method-detail">
454
+ <a name="M000070"></a>
455
+
456
+ <div class="method-heading">
457
+ <a href="TSIG.src/M000070.html" target="Code" class="method-signature"
458
+ onclick="popupCode('TSIG.src/M000070.html');return false;">
459
+ <span class="method-name">verify</span><span class="method-args">(query, response, response_bytes, buf=&quot;&quot;)</span>
460
+ </a>
461
+ </div>
462
+
463
+ <div class="method-description">
464
+ <p>
465
+ Verify a response. This method will be called by <a
466
+ href="../SingleResolver.html">Dnsruby::SingleResolver</a> before passing a
467
+ response to the client code. The <a href="TSIG.html">TSIG</a> record will
468
+ be removed from packet before passing to client, and the Message#tsigstate
469
+ and Message#tsigerror will be set accordingly. Message#tsigstate will be
470
+ set to one of :
471
+ </p>
472
+ <ul>
473
+ <li>:Failed
474
+
475
+ </li>
476
+ <li>:Verified
477
+
478
+ </li>
479
+ </ul>
480
+ </div>
481
+ </div>
482
+
483
+ <div id="method-M000071" class="method-detail">
484
+ <a name="M000071"></a>
485
+
486
+ <div class="method-heading">
487
+ <a href="TSIG.src/M000071.html" target="Code" class="method-signature"
488
+ onclick="popupCode('TSIG.src/M000071.html');return false;">
489
+ <span class="method-name">verify_envelope</span><span class="method-args">(response, response_bytes)</span>
490
+ </a>
491
+ </div>
492
+
493
+ <div class="method-description">
494
+ <p>
495
+ Checks <a href="TSIG.html">TSIG</a> signatures across sessions of multiple
496
+ <a href="../DNS.html">DNS</a> envelopes. This method is called each time a
497
+ new envelope comes in. The envelope is checked - if a <a
498
+ href="TSIG.html">TSIG</a> is present, them the stream so far is verified,
499
+ and the response#tsigstate set to :Verified. If a <a
500
+ href="TSIG.html">TSIG</a> is not present, and does not need to be present,
501
+ then the message is added to the digest stream and the response#tsigstate
502
+ is set to :Intermediate. If there is an error with the <a
503
+ href="TSIG.html">TSIG</a> verification, then the response#tsigstate is set
504
+ to :Failed. Like <a href="TSIG.html#M000070">verify</a>, this method will
505
+ only be called by the <a
506
+ href="../SingleResolver.html">Dnsruby::SingleResolver</a> class. Client
507
+ code need not call this method directly.
508
+ </p>
509
+ </div>
510
+ </div>
511
+
512
+
513
+ </div>
514
+
515
+
516
+ </div>
517
+
518
+
519
+ <div id="validator-badges">
520
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
521
+ </div>
522
+
523
+ </body>
524
+ </html>