Browse Source

[trac2305] various minor documentation changes

add some docbook formatting tags

minor formatting changes.

bindctl -a defaults to 127.0.0.1 not localhost

add a space between "BIND 10"

some rewording

a few punctuation changes

add a sentence to describe an example
Jeremy C. Reed 12 years ago
parent
commit
3d71b86e77
1 changed files with 107 additions and 78 deletions
  1. 107 78
      doc/guide/bind10-guide.xml

+ 107 - 78
doc/guide/bind10-guide.xml

@@ -1296,16 +1296,16 @@ TODO
         <title>bindctl command-line options</title>
         <title>bindctl command-line options</title>
         <variablelist>
         <variablelist>
           <varlistentry>
           <varlistentry>
-            <term>-a &lt;address&gt;, --address=&lt;address&gt;</term>
+            <term>-a <replaceable>&lt;address&gt;</replaceable>, --address=<replaceable>&lt;address&gt;</replaceable></term>
             <listitem>
             <listitem>
               <simpara>
               <simpara>
-                  IP address that BIND10's <command>b10-cmdctl</command>
+                  IP address that BIND 10's <command>b10-cmdctl</command>
-                  module is listening on. By default, this is localhost.
+                  module is listening on. By default, this is 127.0.0.1.
               </simpara>
               </simpara>
             </listitem>
             </listitem>
           </varlistentry>
           </varlistentry>
           <varlistentry>
           <varlistentry>
-            <term>-c &lt;certificate file&gt;, --certificate-chain=&lt;certificate file&gt;</term>
+            <term>-c <replaceable>&lt;certificate file&gt;</replaceable>, --certificate-chain=<replaceable>&lt;certificate file&gt;</replaceable></term>
             <listitem>
             <listitem>
               <simpara>
               <simpara>
                   PEM-formatted server certificate file. When this option is
                   PEM-formatted server certificate file. When this option is
@@ -1317,15 +1317,16 @@ TODO
             </listitem>
             </listitem>
           </varlistentry>
           </varlistentry>
           <varlistentry>
           <varlistentry>
-            <term>--csv-file-dir=&lt;csv file&gt;</term>
+            <term>--csv-file-dir=<replaceable>&lt;csv file&gt;</replaceable></term>
             <listitem>
             <listitem>
               <simpara>
               <simpara>
                   <command>bindctl</command> stores the username and
                   <command>bindctl</command> stores the username and
-                  password for logging in a file called default_user.csv;
+                  password for logging in a file called
+                  <filename>default_user.csv</filename>;
                   this option specifies the directory where this file is
                   this option specifies the directory where this file is
-                  stored and read from. When not specified, ~/.bind10/ is
+                  stored and read from. When not specified,
-                  used.
+                  <filename>~/.bind10/</filename> is used.
-                  <note>At the moment, this file contains an unencrypted password.</note>
+                  <note>Currently, this file contains an unencrypted password.</note>
               </simpara>
               </simpara>
             </listitem>
             </listitem>
           </varlistentry>
           </varlistentry>
@@ -1347,10 +1348,10 @@ TODO
             </listitem>
             </listitem>
           </varlistentry>
           </varlistentry>
           <varlistentry>
           <varlistentry>
-            <term>-p &lt;port number&gt;, --port=&lt;port number&gt;</term>
+            <term>-p <replaceable>&lt;port number&gt;</replaceable>, --port=<replaceable>&lt;port number&gt;</replaceable></term>
             <listitem>
             <listitem>
               <simpara>
               <simpara>
-                  Port number that BIND10's <command>b10-cmdctl</command>
+                  Port number that BIND 10's <command>b10-cmdctl</command>
                   module is listening on. By default, this is port 8080.
                   module is listening on. By default, this is port 8080.
               </simpara>
               </simpara>
             </listitem>
             </listitem>
@@ -1360,17 +1361,19 @@ TODO
 
 
     <section id="bindctl_general_syntax">
     <section id="bindctl_general_syntax">
         <title>General syntax of bindctl commands</title>
         <title>General syntax of bindctl commands</title>
-        The bindctl tool is an interactive command-line tool, with dynamic
+        The <command>bindctl</command> tool is an interactive
-        commands depending on the modules that are running. There are a
+        command-line tool, with dynamic commands depending on the
-        number of fixed commands that have no module and that are always
+        BIND 10 modules that are running. There are a number of
+        fixed commands that have no module and that are always
         available.
         available.
 
 
         The general syntax of a command is
         The general syntax of a command is
 
 
-        <screen><userinput>&lt;module&gt; &lt;command&gt; [argument(s)]</userinput></screen>
+        <screen><userinput>&lt;module&gt; &lt;command&gt; <replaceable>[argument(s)]</replaceable></userinput></screen>
+
+        For example, the Boss module has a 'shutdown' command to shut down
+        BIND 10, with an optional argument 'help':
 
 
-        Example:
-        The Boss module has a shutdown command to shut down BIND 10, with an optional argument 'help':
         <screen><userinput>> Boss shutdown help</userinput>
         <screen><userinput>> Boss shutdown help</userinput>
 Command  shutdown 	(Shut down BIND 10)
 Command  shutdown 	(Shut down BIND 10)
 		help (Get help for command)
 		help (Get help for command)
@@ -1382,7 +1385,7 @@ This command has no parameters
     <section id="bindctl_help">
     <section id="bindctl_help">
         <title>Bindctl help</title>
         <title>Bindctl help</title>
         <command>help</command> is both a command and an option that is available to all other commands. When run as a command directly, it shows the available modules.
         <command>help</command> is both a command and an option that is available to all other commands. When run as a command directly, it shows the available modules.
-        <screen><userinput>> help</userinput>
+        <screen>&gt; <userinput>help</userinput>
 usage: &lt;module name&gt; &lt;command name&gt; [param1 = value1 [, param2 = value2]]
 usage: &lt;module name&gt; &lt;command name&gt; [param1 = value1 [, param2 = value2]]
 Type Tab character to get the hint of module/command/parameters.
 Type Tab character to get the hint of module/command/parameters.
 Type "help(? h)" for help on bindctl.
 Type "help(? h)" for help on bindctl.
@@ -1390,11 +1393,11 @@ Type "&lt;module_name&gt; help" for help on the specific module.
 Type "&lt;module_name&gt; &lt;command_name&gt; help" for help on the specific command.
 Type "&lt;module_name&gt; &lt;command_name&gt; help" for help on the specific command.
 
 
 Available module names:
 Available module names:
-(list of modules)
+<emphasis>(list of modules)</emphasis>
         </screen>
         </screen>
 
 
-        When run as a command to a module, it shows the commands that module supports:
+        When 'help' is used as a command to a module, it shows the supported commands for the module; for example:
-        <screen><userinput>> Boss help</userinput>
+        <screen>&gt; <userinput>Boss help</userinput>
 Module  Boss 	Master process
 Module  Boss 	Master process
 Available commands:
 Available commands:
     help        Get help for module.
     help        Get help for module.
@@ -1404,8 +1407,8 @@ Available commands:
             List the running BIND 10 processes
             List the running BIND 10 processes
         </screen>
         </screen>
 
 
-    And when added to a module command, it shows the description and parameters of that command:
+    And when added to a module command, it shows the description and parameters of that specific command; for example:
-    <screen><userinput>> Auth loadzone help</userinput>
+    <screen>&gt; <userinput>Auth loadzone help</userinput>
 Command  loadzone 	((Re)load a specified zone)
 Command  loadzone 	((Re)load a specified zone)
 		help (Get help for command)
 		help (Get help for command)
 Parameters:
 Parameters:
@@ -1417,18 +1420,19 @@ Parameters:
 
 
     <section id="bindctl_command_arguments">
     <section id="bindctl_command_arguments">
         <title>Command arguments</title>
         <title>Command arguments</title>
-        The 'loadzone' command of the Auth module, as shown in the last
+        The <command>loadzone</command> command of the Auth
+        module, as shown in the last
         example of the previous section, has two arguments, one of which is
         example of the previous section, has two arguments, one of which is
         optional. When using positional arguments they are expected to be
         optional. When using positional arguments they are expected to be
         provided in the order in which 'help' gives them, in this case class
         provided in the order in which 'help' gives them, in this case class
         first and origin second; i.e.
         first and origin second; i.e.
-        <screen><userinput>> Auth loadzone IN example.com.</userinput></screen>
+        <screen>&gt; <userinput>Auth loadzone IN example.com.</userinput></screen>
         But since the class is optional (defaulting to IN), leaving it out
         But since the class is optional (defaulting to IN), leaving it out
         works as well:
         works as well:
-        <screen><userinput>> Auth loadzone example.com.</userinput></screen>
+        <screen>&gt;<userinput>Auth loadzone example.com.</userinput></screen>
 
 
         Arguments can also be provided with their names:
         Arguments can also be provided with their names:
-        <screen><userinput>> Auth loadzone origin="example.com." class="IN"</userinput></screen>
+        <screen>&gt; <userinput>Auth loadzone origin="example.com." class="IN"</userinput></screen>
 
 
         When using this method, the order does not matter.
         When using this method, the order does not matter.
     </section>
     </section>
@@ -1436,9 +1440,11 @@ Parameters:
     <section id="bindctl_module_commands">
     <section id="bindctl_module_commands">
         <title>Module commands</title>
         <title>Module commands</title>
         Each module has its own set of commands (if any), which will only be
         Each module has its own set of commands (if any), which will only be
-        available if the module is running. For instance, Auth has a
+        available if the module is running. For instance, the
-        'loadzone' command. The commands a module provides are documented in
+        Auth module has a <command>loadzone</command> command.
-        the section of that module.
+        The commands a module provides are documented in
+        this guide in the section of that module or in the module's
+        corresponding manual page.
     </section>
     </section>
 
 
     <section>
     <section>
@@ -1447,12 +1453,15 @@ Parameters:
         of BIND 10 and its modules. Module configuration is only shown if
         of BIND 10 and its modules. Module configuration is only shown if
         that module is running, but similar to commands, there are a number
         that module is running, but similar to commands, there are a number
         of top-level configuration items that are always available (for
         of top-level configuration items that are always available (for
-        instance tsig_keys and data_sources).
+        instance <varname>tsig_keys</varname> and
+        <varname>data_sources</varname>).
 
 
         Configuration changes (set, unset, add and remove) are done locally
         Configuration changes (set, unset, add and remove) are done locally
         first, and have no immediate effect. The changes can be viewed with
         first, and have no immediate effect. The changes can be viewed with
-        'config diff', and either reverted (config revert), or committed
+        <command>config diff</command>, and either reverted
-        (config commit). In the latter case, all local changes are submitted
+        (<command>config revert</command>), or committed
+        (<command>config commit</command>).
+        In the latter case, all local changes are submitted
         to the configuration manager, which verifies them, and if they are
         to the configuration manager, which verifies them, and if they are
         accepted, applied and saved in persistent storage.
         accepted, applied and saved in persistent storage.
 
 
@@ -1460,7 +1469,8 @@ Parameters:
         <screen><userinput>Module/example/item</userinput></screen>
         <screen><userinput>Module/example/item</userinput></screen>
         Sub-elements of names, lists and sets (see <xref linkend=
         Sub-elements of names, lists and sets (see <xref linkend=
         "bindctl_configuration_data_types"/>) are separated with the '/'
         "bindctl_configuration_data_types"/>) are separated with the '/'
-        character, and list indices are identified with [&lt;index&gt;].
+        character, and list indices are identified with [<replaceable>&lt;index&gt;</replaceable>]; for example:
+
         <screen><userinput>Module/example/list[2]/foo</userinput></screen>
         <screen><userinput>Module/example/list[2]/foo</userinput></screen>
 
 
         <section id="bindctl_configuration_command_list">
         <section id="bindctl_configuration_command_list">
@@ -1597,7 +1607,7 @@ Parameters:
                 <term>boolean</term>
                 <term>boolean</term>
                 <listitem>
                 <listitem>
                     <simpara>
                     <simpara>
-                        A basic boolean value; can be set directly with <command>config set</command>, to either true or false.
+                        A basic boolean value; can be set directly with <command>config set</command>, to either <command>true</command> or <command>false</command>.
                     </simpara>
                     </simpara>
                 </listitem>
                 </listitem>
             </varlistentry>
             </varlistentry>
@@ -1624,37 +1634,42 @@ Parameters:
                     <simpara>
                     <simpara>
                         Maps are (pre-defined) compound collections of other
                         Maps are (pre-defined) compound collections of other
                         elements of any other type. They are not usually
                         elements of any other type. They are not usually
-                        modified directly, but their elements are; Every
+                        modified directly, but their elements are. Every
                         top-level element for a module is a map containing
                         top-level element for a module is a map containing
                         the configuration values for that map, which can
                         the configuration values for that map, which can
                         themselves be maps again. For instance, the Auth
                         themselves be maps again. For instance, the Auth
                         module configuration is a map containing the
                         module configuration is a map containing the
-                        elements 'listen_on' (list) and 'tcp_recv_timeout'
+                        elements '<varname>listen_on</varname>' (list) and '<varname>tcp_recv_timeout</varname>'
                         (integer). When changing one of its values, they can
                         (integer). When changing one of its values, they can
                         be modified directly with <command>config set
                         be modified directly with <command>config set
                         Auth/tcp_recv_timeout 3000</command>.
                         Auth/tcp_recv_timeout 3000</command>.
                     </simpara>
                     </simpara>
                     <simpara>
                     <simpara>
-                        Some map entries are optional; If they are, and
+                        Some map entries are optional. If they are, and
                         currently have a value, the value can be unset by
                         currently have a value, the value can be unset by
-                        using either <command>config unset &lt;item name&gt;
+                        using either <command>config unset
-                        </command> or <command>config set &lt;item name&gt;
+                        <replaceable>&lt;item name&gt;</replaceable>
+                        </command> or <command>config set
+                        <replaceable>&lt;item name&gt;</replaceable>
                         null</command>.
                         null</command>.
+
                     </simpara>
                     </simpara>
                     <simpara>
                     <simpara>
-                        Maps *can* be modified as a whole, but using the
+                        Maps <emphasis>can</emphasis> be modified as a whole,
-                        full JSON representation of the entire map to set.
+                        but using the full JSON representation of
+                        the entire map to set.
+
                         Since this involves a lot of text, this is usually
                         Since this involves a lot of text, this is usually
                         not recommended.
                         not recommended.
                     </simpara>
                     </simpara>
                     <simpara>
                     <simpara>
                         Another example is the Logging virtual module, which
                         Another example is the Logging virtual module, which
                         is, like any module, a map, but it only contains one
                         is, like any module, a map, but it only contains one
-                        element; a list of loggers. Normally, an
+                        element: a list of loggers. Normally, an
                         administrator would only modify that list (or its
                         administrator would only modify that list (or its
                         elements) directly, but it is possible to set the
                         elements) directly, but it is possible to set the
-                        entire map in one command:
+                        entire map in one command; for example:
-                        Example: <command> config set Logging { "loggers": [] } </command>
+                        <command> config set Logging { "loggers": [] } </command>
                     </simpara>
                     </simpara>
                 </listitem>
                 </listitem>
             </varlistentry>
             </varlistentry>
@@ -1665,19 +1680,21 @@ Parameters:
                     <simpara>
                     <simpara>
                         A list is a compound list of other elements of the
                         A list is a compound list of other elements of the
                         same type; It can be modified by the <command>config
                         same type; It can be modified by the <command>config
-                        add &lt;list name&gt; [value]</command> and
+                        add <replaceable>&lt;list name&gt; [value]</replaceable></command> and
-                        <command>config remove &lt;list name&gt; [value]</command> or
+                        <command>config remove <replaceable>&lt;list name&gt; [value]</replaceable></command> or
-                        <command>config remove &lt;list name&gt;[&lt;index&gt;]</command>
+                        <command>config remove <replaceable>&lt;list name&gt;</replaceable>[<replaceable>&lt;index&gt;</replaceable>]</command>
                         , to add and remove elements. For addition, if the value is omitted, an entry with default values will be added. For removal, either the index or the full value (in JSON format) needs to be specified.
                         , to add and remove elements. For addition, if the value is omitted, an entry with default values will be added. For removal, either the index or the full value (in JSON format) needs to be specified.
                     </simpara>
                     </simpara>
                     <simpara>
                     <simpara>
-                        Lists can also be used with <command>config set
+                        Lists can also be used with
-                        </command>, but like maps, only by specifying the
+                        <command>config set</command>,
+                        but like maps, only by specifying the
                         entire list value in JSON format.
                         entire list value in JSON format.
                     </simpara>
                     </simpara>
                     <simpara>
                     <simpara>
-                        List indices are identified with square brackets.
+                        List indices are identified with square brackets;
-                        Example: <command> config show Auth/listen_on[1]/port</command>
+                        for example:
+                        <command> config show Auth/listen_on[1]/port</command>
                     </simpara>
                     </simpara>
                 </listitem>
                 </listitem>
             </varlistentry>
             </varlistentry>
@@ -1692,19 +1709,21 @@ Parameters:
                     </simpara>
                     </simpara>
                     <simpara>
                     <simpara>
                         Values can be added with
                         Values can be added with
-                        <command>config add &lt;item name&gt; &lt;string&gt; [value]</command>
+                        <command>config add <replaceable>&lt;item name&gt; &lt;string&gt; [value]</replaceable></command>
-                        Where 'string' is the name of the element. If value
+                        where 'string' is the name of the element. If 'value'
                         is ommitted, default values will be used. Elements
                         is ommitted, default values will be used. Elements
-                        can be removed with <command>config remove &lt;item
+                        can be removed with <command>config remove
-                        name&gt; &lt;string&gt;</command>
+                        <replaceable>&lt;item
+                        name&gt; &lt;string&gt;</replaceable></command>
                     </simpara>
                     </simpara>
                     <simpara>
                     <simpara>
                         Elements in a named set can be addressed similarly
                         Elements in a named set can be addressed similarly
                         to maps.
                         to maps.
                     </simpara>
                     </simpara>
                     <simpara>
                     <simpara>
-                        For example, the Boss/components elements is a named
+                        For example, the <command>Boss/components</command>
-                        set; adding, showing, and then removing an element
+                        elements is a named set;
+                        adding, showing, and then removing an element
                         can be done with the following three commands (note
                         can be done with the following three commands (note
                         the '/'-character versus the space before
                         the '/'-character versus the space before
                         'example_module'):
                         'example_module'):
@@ -1725,8 +1744,8 @@ Parameters:
                 <listitem>
                 <listitem>
                     <simpara>
                     <simpara>
                         The 'any' type is a special type that can have any
                         The 'any' type is a special type that can have any
-                        form. Apart from that it must consist of elements as
+                        form. Apart from that, it must consist of elements as
-                        decsribed in this chapter, there is no restriction
+                        described in this chapter, there is no restriction
                         on which element types are used. This type is used
                         on which element types are used. This type is used
                         in places where different data formats could be
                         in places where different data formats could be
                         used. Element modification commands depend on the
                         used. Element modification commands depend on the
@@ -1743,22 +1762,26 @@ Parameters:
 
 
     <section>
     <section>
         <title>The execute command</title>
         <title>The execute command</title>
-        The execute command executes a set of commands, either from a file
+        The <command>execute</command> command executes a set of commands,
+        either from a file
         or from a pre-defined set. Currently, the only predefined set is
         or from a pre-defined set. Currently, the only predefined set is
-        init_authoritative_server, which adds b10-auth, b10-xfrin, and
+        <command>init_authoritative_server</command>, which adds
-        b10-xfrout to the set of components to be started by BIND 10. This
+        <command>b10-auth</command>, <command>b10-xfrin</command>, and
+        <command>b10-xfrout</command> to the set of components to be
+        started by BIND 10. This
         pre-defined set does not commit the changes, so these modules do not
         pre-defined set does not commit the changes, so these modules do not
-        show up for commands or configuration until the user enters 'config
+        show up for commands or configuration until the user enters
-        commit' after 'execute init_authoritative_server'
+        <command>config commit</command> after
+        <command>execute init_authoritative_server</command>. For example:
 
 
-        Example:
+        <screen>&gt; <userinput>execute init_authoritative_server</userinput></screen>
-        <screen><userinput>> execute init_authoritative_server</userinput></screen>
-        <screen><userinput>> execute file /tmp/example_commands</userinput></screen>
 
 
-        There is an optional argument 'show', which shows the exact set of
+        <screen>&gt; <userinput>execute file /tmp/example_commands</userinput></screen>
-        commands that would be executed.
 
 
-        <screen><userinput>> execute init_authoritative_server show</userinput>
+        The optional argument <command>show</command> displays the exact set of
+        commands that would be executed; for example:
+
+        <screen>&gt; <userinput>execute init_authoritative_server show</userinput>
 !echo adding Authoritative server component
 !echo adding Authoritative server component
 config add /Boss/components b10-auth
 config add /Boss/components b10-auth
 config set /Boss/components/b10-auth/kind needed
 config set /Boss/components/b10-auth/kind needed
@@ -1778,6 +1801,10 @@ config set /Boss/components/b10-zonemgr/kind dispensable
 !echo Components added. Please enter "config commit" to
 !echo Components added. Please enter "config commit" to
 !echo finalize initial setup and run the components.
 !echo finalize initial setup and run the components.
         </screen>
         </screen>
+
+        The optional <command>show</command> argument may also be used when
+        executing a script from a file; for example:
+
         <screen><userinput>> execute file /tmp/example_commands show</userinput></screen>
         <screen><userinput>> execute file /tmp/example_commands show</userinput></screen>
 
 
         <section id="bindctl_execute_directives">
         <section id="bindctl_execute_directives">
@@ -1786,10 +1813,11 @@ config set /Boss/components/b10-zonemgr/kind dispensable
             command, a number of directives are supported:
             command, a number of directives are supported:
             <variablelist>
             <variablelist>
               <varlistentry>
               <varlistentry>
-                <term>!echo &lt;string&gt;</term>
+                <term>!echo <replaceable>&lt;string&gt;</replaceable></term>
                 <listitem>
                 <listitem>
                   <simpara>
                   <simpara>
-                      Prints the given string to bindctl's output.
+                      Prints the given string to <command>bindctl</command>'s
+                      output.
                   </simpara>
                   </simpara>
                 </listitem>
                 </listitem>
               </varlistentry>
               </varlistentry>
@@ -1797,8 +1825,8 @@ config set /Boss/components/b10-zonemgr/kind dispensable
                 <term>!verbose on</term>
                 <term>!verbose on</term>
                 <listitem>
                 <listitem>
                   <simpara>
                   <simpara>
-                      Enables verbose mode; all commands that are to be executed
+                      Enables verbose mode; all following commands that are to
-                      are printed.
+                      be executed are also printed.
                   </simpara>
                   </simpara>
                 </listitem>
                 </listitem>
               </varlistentry>
               </varlistentry>
@@ -1806,8 +1834,8 @@ config set /Boss/components/b10-zonemgr/kind dispensable
                 <term>!verbose off</term>
                 <term>!verbose off</term>
                 <listitem>
                 <listitem>
                   <simpara>
                   <simpara>
-                      Disables verbose mode; commands that are to be executed are
+                      Disables verbose mode; following commands that are to
-                      no longer printed.
+                      be executed are no longer printed.
                   </simpara>
                   </simpara>
                 </listitem>
                 </listitem>
               </varlistentry>
               </varlistentry>
@@ -1817,7 +1845,8 @@ config set /Boss/components/b10-zonemgr/kind dispensable
         <section id="bindctl_execute_notes">
         <section id="bindctl_execute_notes">
             <title>Notes on execute scripts</title>
             <title>Notes on execute scripts</title>
             Within scripts, you can add or remove modules with the normal
             Within scripts, you can add or remove modules with the normal
-            configuration commands for Boss/components. However, as module
+            configuration commands for <command>Boss/components</command>.
+            However, as module
             configuration and commands do not show up until the module is
             configuration and commands do not show up until the module is
             running, it is currently not possible to add a module and set
             running, it is currently not possible to add a module and set
             its configuration in one script. This will be addressed in the
             its configuration in one script. This will be addressed in the