b10-resolver.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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) 2010-2012 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. <refentry>
  20. <refentryinfo>
  21. <date>August 16, 2012</date>
  22. </refentryinfo>
  23. <refmeta>
  24. <refentrytitle>b10-resolver</refentrytitle>
  25. <manvolnum>8</manvolnum>
  26. <refmiscinfo>BIND10</refmiscinfo>
  27. </refmeta>
  28. <refnamediv>
  29. <refname>b10-resolver</refname>
  30. <refpurpose>Recursive DNS server</refpurpose>
  31. </refnamediv>
  32. <docinfo>
  33. <copyright>
  34. <year>2010-2012</year>
  35. <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
  36. </copyright>
  37. </docinfo>
  38. <refsynopsisdiv>
  39. <cmdsynopsis>
  40. <command>b10-resolver</command>
  41. <arg><option>-v</option></arg>
  42. </cmdsynopsis>
  43. </refsynopsisdiv>
  44. <refsect1>
  45. <title>DESCRIPTION</title>
  46. <para>The <command>b10-resolver</command> daemon provides the BIND 10
  47. recursive DNS server. Normally it is started by the
  48. <citerefentry><refentrytitle>b10-init</refentrytitle><manvolnum>8</manvolnum></citerefentry>
  49. process.
  50. </para>
  51. <para>
  52. This daemon communicates with other BIND 10 components over a
  53. <citerefentry><refentrytitle>b10-msgq</refentrytitle><manvolnum>8</manvolnum></citerefentry>
  54. C-Channel connection. If this connection is not established,
  55. <command>b10-resolver</command> will exit.
  56. </para>
  57. <para>
  58. It also receives its configurations from
  59. <citerefentry><refentrytitle>b10-cfgmgr</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
  60. </para>
  61. <!--
  62. <note><para>
  63. Future versions will introduce lookup of local authoritative
  64. data (as in <command>b10-auth</command>) and DNSSEC validation.
  65. </para></note>
  66. -->
  67. </refsect1>
  68. <refsect1>
  69. <title>OPTIONS</title>
  70. <para>The arguments are as follows:</para>
  71. <variablelist>
  72. <!-- TODO: this needs to be fixed as -v on command line
  73. should imply stdout or stderr output also -->
  74. <!-- TODO: can this -v be overidden by configuration or bindctl? -->
  75. <varlistentry>
  76. <term><option>-v</option></term>
  77. <listitem><para>
  78. Enable verbose mode.
  79. This sets logging to the maximum debugging level.
  80. </para></listitem>
  81. </varlistentry>
  82. </variablelist>
  83. </refsect1>
  84. <refsect1>
  85. <title>CONFIGURATION AND COMMANDS</title>
  86. <para>
  87. The configurable settings are:
  88. </para>
  89. <para>
  90. <varname>forward_addresses</varname> defines the list of addresses
  91. and ports that <command>b10-resolver</command> should forward
  92. queries to.
  93. Defining this enables forwarding.
  94. <!-- TODO: list
  95. address
  96. ::1
  97. port
  98. 53
  99. -->
  100. </para>
  101. <!-- trac384:
  102. once that is merged you can for instance do 'config add Resolver/forward_addresses { "port": 123 } and it will fill in the rest (in this case ::1 for the address)
  103. -->
  104. <para>
  105. <varname>listen_on</varname> is a list of addresses and ports for
  106. <command>b10-resolver</command> to listen on.
  107. The list items are the <varname>address</varname> string
  108. and <varname>port</varname> number.
  109. The defaults are address ::1 port 53 and
  110. address 127.0.0.1 port 53.
  111. <!-- TODO: but defaults are not used, Trac #518 -->
  112. </para>
  113. <para>
  114. <!-- TODO: need more explanation or point to guide. -->
  115. <!-- TODO: what about a netmask or cidr? -->
  116. <!-- TODO: document "key" -->
  117. <!-- TODO: where are the TSIG keys defined? -->
  118. <!-- TODO: key and from are mutually exclusive? what if both defined? -->
  119. <varname>query_acl</varname> is a list of query access control
  120. rules. The list items are the <varname>action</varname> string
  121. and the <varname>from</varname> or <varname>key</varname> strings.
  122. The possible actions are ACCEPT, REJECT and DROP.
  123. The <varname>from</varname> is a remote (source) IPv4 or IPv6
  124. address or special keyword.
  125. The <varname>key</varname> is a TSIG key name.
  126. The default configuration accepts queries from 127.0.0.1 and ::1.
  127. The default action is REJECT for newly added
  128. <varname>query_acl</varname> items.
  129. </para>
  130. <para>
  131. <varname>retries</varname> is the number of times to retry
  132. (resend query) after a query timeout
  133. (<varname>timeout_query</varname>).
  134. The default is 3.
  135. </para>
  136. <para>
  137. <varname>root_addresses</varname> is a list of addresses and ports
  138. for <command>b10-resolver</command> to use directly as
  139. root servers to start resolving.
  140. The list items are the <varname>address</varname> string
  141. and <varname>port</varname> number.
  142. By default, a hardcoded address for l.root-servers.net
  143. (199.7.83.42 or 2001:500:3::42) is used.
  144. </para>
  145. <!-- TODO: this is broken, see ticket #1184 -->
  146. <para>
  147. <varname>timeout_client</varname> is the number of milliseconds
  148. to wait before timing out the incoming client query.
  149. If set to -1, this timeout is disabled.
  150. The default is 4000.
  151. After this timeout, a SERVFAIL is sent back to the client asking
  152. the question.
  153. (The lookup may continue after the timeout, but a later answer
  154. is not returned for the now-past query.)
  155. </para>
  156. <para>
  157. <varname>timeout_lookup</varname> is the number of milliseconds
  158. before it stops trying the query.
  159. If set to -1, this timeout is disabled.
  160. The default is 30000.
  161. </para>
  162. <para>
  163. <!-- previous timeout was renamed to timeout_query -->
  164. <varname>timeout_query</varname> is the number of milliseconds to
  165. wait before it retries a query.
  166. If set to -1, this timeout is disabled.
  167. The default is 2000.
  168. </para>
  169. <!-- TODO: formating -->
  170. <para>
  171. The configuration command is:
  172. </para>
  173. <para>
  174. <command>shutdown</command> exits <command>b10-resolver</command>.
  175. This has an optional <varname>pid</varname> argument to
  176. select the process ID to stop.
  177. (Note that the b10-init process may restart this service
  178. if configured.)
  179. </para>
  180. </refsect1>
  181. <!--
  182. <refsect1>
  183. <title>FILES</title>
  184. <para>
  185. None.
  186. </para>
  187. </refsect1>
  188. -->
  189. <refsect1>
  190. <title>SEE ALSO</title>
  191. <para>
  192. <citerefentry>
  193. <refentrytitle>b10-cfgmgr</refentrytitle><manvolnum>8</manvolnum>
  194. </citerefentry>,
  195. <citerefentry>
  196. <refentrytitle>b10-cmdctl</refentrytitle><manvolnum>8</manvolnum>
  197. </citerefentry>,
  198. <citerefentry>
  199. <refentrytitle>b10-msgq</refentrytitle><manvolnum>8</manvolnum>
  200. </citerefentry>,
  201. <citerefentry>
  202. <refentrytitle>bind10</refentrytitle><manvolnum>8</manvolnum>
  203. </citerefentry>,
  204. <citetitle>BIND 10 Guide</citetitle>.
  205. </para>
  206. </refsect1>
  207. <refsect1>
  208. <title>HISTORY</title>
  209. <para>
  210. The <command>b10-resolver</command> daemon was first coded in
  211. September 2010. The initial implementation only provided
  212. forwarding. Iteration was introduced in January 2011.
  213. Caching was implemented in February 2011.
  214. Access control was introduced in June 2011.
  215. <!-- TODO: document when validation was added -->
  216. </para>
  217. </refsect1>
  218. </refentry><!--
  219. - Local variables:
  220. - mode: sgml
  221. - End:
  222. -->