b10-host.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  2. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
  3. [<!ENTITY mdash "&#8212;">]>
  4. <!--
  5. - Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
  6. -
  7. - Permission to use, copy, modify, and/or distribute this software for any
  8. - purpose with or without fee is hereby granted, provided that the above
  9. - copyright notice and this permission notice appear in all copies.
  10. -
  11. - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  12. - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  13. - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  14. - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  15. - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  16. - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. - PERFORMANCE OF THIS SOFTWARE.
  18. -->
  19. <!-- $Id$ -->
  20. <refentry>
  21. <refentryinfo>
  22. <date>May 4, 2011</date>
  23. </refentryinfo>
  24. <refmeta>
  25. <refentrytitle>b10-host</refentrytitle>
  26. <manvolnum>1</manvolnum>
  27. <refmiscinfo>BIND10</refmiscinfo>
  28. </refmeta>
  29. <refnamediv>
  30. <refname>b10-host</refname>
  31. <refpurpose>DNS lookup utility</refpurpose>
  32. </refnamediv>
  33. <docinfo>
  34. <copyright>
  35. <year>2011</year>
  36. <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
  37. </copyright>
  38. </docinfo>
  39. <refsynopsisdiv>
  40. <cmdsynopsis>
  41. <command>b10-host</command>
  42. <arg><option>-a</option></arg>
  43. <arg><option>-c <replaceable>class</replaceable></option></arg>
  44. <arg><option>-d</option></arg>
  45. <arg><option>-p <replaceable>port</replaceable></option></arg>
  46. <arg><option>-r</option></arg>
  47. <arg><option>-t <replaceable>type</replaceable></option></arg>
  48. <arg><option>-v</option></arg>
  49. <arg><replaceable>name</replaceable></arg>
  50. <arg><option><replaceable>server</replaceable></option></arg>
  51. </cmdsynopsis>
  52. </refsynopsisdiv>
  53. <refsect1>
  54. <title>DESCRIPTION</title>
  55. <para>
  56. The <command>b10-host</command> utility does DNS lookups.
  57. Its initial goal is to be a
  58. <citerefentry><refentrytitle>host</refentrytitle>
  59. <manvolnum>1</manvolnum></citerefentry>
  60. clone, but also add a few features useful for BIND 10 development
  61. testing.
  62. </para>
  63. <para>
  64. By default, it looks up the A, AAAA, and MX record sets for the
  65. <replaceable>name</replaceable>.
  66. Optionally, you may select a name server to query against by adding
  67. the <replaceable>server</replaceable> argument.
  68. </para>
  69. </refsect1>
  70. <refsect1>
  71. <title>OPTIONS</title>
  72. <para>The arguments are as follows:</para>
  73. <variablelist>
  74. <varlistentry>
  75. <term><option>-a</option></term>
  76. <listitem><para>
  77. Enable verbose mode and do a query for type ANY.
  78. (If the <option>-t</option> option is also set, then the
  79. ANY query is not done, but it still uses verbose mode.)
  80. </para></listitem>
  81. </varlistentry>
  82. <varlistentry>
  83. <term><option>-c <replaceable>class</replaceable></option></term>
  84. <listitem><para>
  85. Define the class for the query.
  86. The default is IN (Internet).
  87. <!-- TODO: bug if class is unknown causes seg fault and possible core dump -->
  88. </para></listitem>
  89. </varlistentry>
  90. <varlistentry>
  91. <term><option>-d</option></term>
  92. <listitem><para>
  93. Enable verbose output mode, including elapsed time in
  94. milliseconds.
  95. Verbose mode shows the header, question, answer, authority,
  96. and additional sections (if provided).
  97. (Same as <option>-v</option>.)
  98. </para></listitem>
  99. </varlistentry>
  100. <varlistentry>
  101. <term><option>-p <replaceable>port</replaceable></option></term>
  102. <listitem><para>
  103. Select an alternative port for the query.
  104. This may be a number or a service name.
  105. The default is 53 (domain).
  106. This is not a standard feature of
  107. <citerefentry><refentrytitle>host</refentrytitle>
  108. <manvolnum>1</manvolnum></citerefentry>.
  109. </para></listitem>
  110. </varlistentry>
  111. <varlistentry>
  112. <term><option>-r</option></term>
  113. <listitem><para>
  114. Disable recursive processing by not setting the
  115. Recursion Desired flag in the query.
  116. </para></listitem>
  117. </varlistentry>
  118. <varlistentry>
  119. <term><option>-t <replaceable>type</replaceable></option></term>
  120. <listitem><para>
  121. Select a specific resource record type for the query.
  122. By default, it looks up the A, AAAA, and MX record sets.
  123. <!-- TODO: bug if class is unknown causes seg fault and possible core dump -->
  124. (This overrides the <option>-a</option> option.)
  125. </para></listitem>
  126. </varlistentry>
  127. <varlistentry>
  128. <term><option>-v</option></term>
  129. <listitem><para>
  130. Same as <option>-d</option> option.
  131. </para></listitem>
  132. </varlistentry>
  133. </variablelist>
  134. </refsect1>
  135. <refsect1>
  136. <title>COMPATIBILITY / BUGS</title>
  137. <para>
  138. <command>b10-host</command> does not do reverse lookups by
  139. default yet (by detecting if name is a IPv4 or IPv6 address).
  140. </para>
  141. <para>
  142. Unknown <option>-c</option> class or <option>-t</option> type
  143. causes <command>b10-host</command> to Abort.
  144. </para>
  145. <para>
  146. Not all types are supported yet for formatting.
  147. Not all switches are supported yet.
  148. </para>
  149. <para>
  150. It doesn't use <filename>/etc/resolv.conf</filename> at this time.
  151. The default name server used is 127.0.0.1.
  152. </para>
  153. <para>
  154. <option>-p</option> is not a standard feature.
  155. </para>
  156. </refsect1>
  157. <refsect1>
  158. <title>HISTORY</title>
  159. <para>
  160. The C++ version of <command>b10-host</command> was started in
  161. October 2009 by Jeremy C. Reed of ISC.
  162. Its usage and output were based on the standard <command>host</command>
  163. command.
  164. </para>
  165. </refsect1>
  166. </refentry><!--
  167. - Local variables:
  168. - mode: sgml
  169. - End:
  170. -->