bindctl.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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 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>March 18, 2010</date>
  23. </refentryinfo>
  24. <refmeta>
  25. <refentrytitle>bindctl</refentrytitle>
  26. <manvolnum>1</manvolnum>
  27. <refmiscinfo>BIND10</refmiscinfo>
  28. </refmeta>
  29. <refnamediv>
  30. <refname>bindctl</refname>
  31. <refpurpose>control and configure BIND 10</refpurpose>
  32. </refnamediv>
  33. <docinfo>
  34. <copyright>
  35. <year>2010</year>
  36. <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
  37. </copyright>
  38. </docinfo>
  39. <refsynopsisdiv>
  40. <cmdsynopsis>
  41. <command>bindctl</command>
  42. </cmdsynopsis>
  43. </refsynopsisdiv>
  44. <refsect1>
  45. <title>DESCRIPTION</title>
  46. <para>
  47. The <command>bindctl</command> tool is a user interface to
  48. the BIND 10 services. The program can be used to control
  49. the components and configure the BIND 10 options. The options
  50. may be specified
  51. <!-- TODO: as command-line arguments, or --> via its
  52. interactive command interpreter.
  53. </para>
  54. <para>
  55. <command>bindctl</command> communicates over the REST-ful
  56. interface provided by
  57. <citerefentry><refentrytitle>b10-cmdctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
  58. The
  59. <citerefentry><refentrytitle>b10-cfgmgr</refentrytitle><manvolnum>8</manvolnum></citerefentry>
  60. daemon stores the configurations and defines the commands.
  61. </para>
  62. <para>
  63. The tool will authenticate using a username and password.
  64. On the first successful login, it will save the details to
  65. <filename>~/.bind10/default_user.csv</filename>
  66. which will be used for later uses of <command>bindctl</command>.
  67. </para>
  68. <para>
  69. The <command>bindctl</command> prompt shows
  70. <quote>&gt; </quote>.
  71. The prompt will also display the location if changed.
  72. The options are based on the module in use.
  73. The usage is:
  74. <command>module</command> <command>command</command> <replaceable>param1 = value1 , <replaceable>param2 = value2</replaceable></replaceable>
  75. </para>
  76. <para>
  77. <command>bindctl</command>'s
  78. interactive interface provides command-line completion and
  79. hints. Press the Tab key to get a hint for the module,
  80. command, and/or parameters.
  81. <!-- TODO: no hints at a blank line though ? -->
  82. The arrow keys and Emacs-style editing keys may be used to edit
  83. and recall previous lines.
  84. <!-- TODO: all Emacs-style editing keys? -->
  85. </para>
  86. <para>
  87. You can use the <command>help</command>
  88. keyword to receive usage assistance for a module or a module's
  89. command.
  90. </para>
  91. <para>
  92. The <command>quit</command>
  93. command is used to exit
  94. <command>bindctl</command>
  95. (and doesn't stop the BIND 10 services).
  96. </para>
  97. <para>
  98. The following module is available by default:
  99. <command>config</command> for Configuration commands.
  100. <!-- TODO: or is config from the cfgmgr module? -->
  101. Additional modules may be available, such as
  102. <command>Boss</command>, <command>Xfrin</command>, and
  103. <command>Auth</command>.
  104. </para>
  105. <!--
  106. .Sh CONFIGURATION COMMANDS
  107. The following configuration commands are recognized by
  108. .Nm :
  109. .Bl -tag -width Ic
  110. .It Ic add Ar identifier Ar value
  111. Add a value to a list.
  112. .\" TODO: explain better
  113. .\" TODO: define list, map, others ...
  114. .\" TODO: why the value?
  115. .It Ic commit
  116. Commit all local changes.
  117. .\" TODO: what does this do?
  118. .It Ic go Ar identifier
  119. Go to the specified location within the configuration.
  120. .\" TODO: explain this
  121. .It Ic help
  122. Get help for the
  123. .Em config
  124. module.
  125. .It Ic remove Ar identifier Ar value
  126. Remove a value from a list.
  127. .\" TODO: why the value?
  128. .It Ic revert
  129. Revert all local changes (that have not been committed).
  130. .\" TODO: what does this do?
  131. .It Ic set Ar identifier Ar value
  132. Set a configuration value.
  133. .\" TODO
  134. .It Ic show Op Ar identifier.
  135. .\" TODO
  136. Show the currently set configuration values.
  137. If no
  138. .Ar identifier
  139. is given, the current location is used (as set by the
  140. .Ic go
  141. command).
  142. If a config option is a list or a map, the value is not
  143. shown directly, but must be requested separately.
  144. .\" TODO: example of this list or map
  145. .It Ic unset Ar identifier
  146. Remove a configuration value.
  147. If the option is mandatory, it will reset to the default value.
  148. .\" TODO: how to know default values before?
  149. .El
  150. .\" This manual page only covers builtin commands.
  151. .\" .Sh PARKINGLOT COMMANDS
  152. .\" .Bl -tag -width Ic
  153. .\" .It Ic help
  154. .\" Get help for the
  155. .\" .Em ParkingLot
  156. .\" module.
  157. .\"
  158. .\" TODO: Command arguments which have embedded spaces may be quoted with
  159. .\" quote
  160. .\" .Sq \&"
  161. .\" marks.
  162. .Pp
  163. .Pp command-line editing?
  164. .Pp
  165. .Sh EXAMPLES
  166. The following are some
  167. .Nm
  168. examples:
  169. .Bl -tag -width abcde
  170. .It Ic "config help"
  171. Show the commands for the
  172. .Em config
  173. module.
  174. .It Ic "config go ParkingLot/"
  175. Go to the
  176. .Dq ParkingLot/
  177. configuration location.
  178. -->
  179. </refsect1>
  180. <!-- TODO: any options? -->
  181. <refsect1>
  182. <title>SEE ALSO</title>
  183. <para>
  184. <citerefentry>
  185. <refentrytitle>b10-auth</refentrytitle><manvolnum>8</manvolnum>
  186. </citerefentry>,
  187. <citerefentry>
  188. <refentrytitle>b10-cfgmgr</refentrytitle><manvolnum>8</manvolnum>
  189. </citerefentry>,
  190. <citerefentry>
  191. <refentrytitle>b10-cmdctl</refentrytitle><manvolnum>8</manvolnum>
  192. </citerefentry>,
  193. <citerefentry>
  194. <refentrytitle>b10-xfrin</refentrytitle><manvolnum>8</manvolnum>
  195. </citerefentry>,
  196. <citerefentry>
  197. <refentrytitle>bind10</refentrytitle><manvolnum>8</manvolnum>
  198. </citerefentry>,
  199. <citetitle>BIND 10 Guide</citetitle>.
  200. </para>
  201. <!-- TODO: point to developer docs -->
  202. </refsect1>
  203. <refsect1>
  204. <title>AUTHORS</title>
  205. <para>
  206. The <command>bindctl</command>
  207. tool and library were initially coded by Zhang Likun of CNNIC
  208. for the BIND 10 project.
  209. The initial manual page was written by Jeremy C. Reed of ISC.
  210. </para>
  211. </refsect1>
  212. <refsect1>
  213. <title>HISTORY</title>
  214. <para>
  215. The initial version (with internal name of
  216. <command>BigTool</command>)
  217. was started in October 2009.
  218. </para>
  219. </refsect1>
  220. </refentry><!--
  221. - Local variables:
  222. - mode: sgml
  223. - End:
  224. -->