]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
the update-policy template doesn't match the implementation. [RT #19877]
authorTatuya JINMEI 神明達哉 <jinmei@isc.org>
Thu, 2 Jul 2009 22:50:24 +0000 (22:50 +0000)
committerTatuya JINMEI 神明達哉 <jinmei@isc.org>
Thu, 2 Jul 2009 22:50:24 +0000 (22:50 +0000)
for 9.7.0a2.

bin/confgen/ddns-confgen.c
bin/confgen/ddns-confgen.docbook

index fe3d20b3656f78dde23e738bbecfedc882f9cda7..f25a15a1ad11127f589d216a5be15ddcc9036136 100644 (file)
@@ -14,7 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: ddns-confgen.c,v 1.6 2009/06/17 19:18:37 jinmei Exp $ */
+/* $Id: ddns-confgen.c,v 1.7 2009/07/02 22:50:24 jinmei Exp $ */
 
 /*! \file */
 
@@ -211,9 +211,9 @@ key \"%s\" {\n\
 # name \"%s\", place an \"update-policy\" statement\n\
 # like this one, adjusted as needed for your preferred permissions:\n\
 update-policy {\n\
-         grant %s self . ANY;\n\
+         grant %s name %s ANY;\n\
 };\n",
-                              self_domain, keyname);
+                              self_domain, keyname, self_domain);
                } else if (zone != NULL) {
                        printf("\n\
 # Then, in the \"zone\" definition statement for \"%s\",\n\
index a7e6eb9c4bf1011213dc605e0f8fc508fe9d3d79..bd707bac60a27340a4ee138e7194c56a976a3a5a 100644 (file)
@@ -17,7 +17,7 @@
  - PERFORMANCE OF THIS SOFTWARE.
 -->
 
-<!-- $Id: ddns-confgen.docbook,v 1.4 2009/06/16 22:36:53 jinmei Exp $ -->
+<!-- $Id: ddns-confgen.docbook,v 1.5 2009/07/02 22:50:24 jinmei Exp $ -->
 <refentry id="man.ddns-confgen">
   <refentryinfo>
     <date>Jan 29, 2009</date>
          <para>
            Specifies the key name of the DDNS authentication key.
            The default is <constant>ddns-key</constant> when neither
-           the <command>-s</command> nor <command>-z</command> option is
+           the <option>-s</option> nor <option>-z</option> option is
            specified; otherwise, the default
            is <constant>ddns-key</constant> as a separate label
            followed by the argument of the option, e.g.,
        <term>-s <replaceable class="parameter">name</replaceable></term>
        <listitem>
          <para>
-           Self mode:  The example <command>named.conf</command> text
-            shows how to set an update policy for the specified
+           Single host mode: The example <command>named.conf</command> text
+           shows how to set an update policy for the specified
            <replaceable class="parameter">name</replaceable>
-           using the "self" nametype, instead of the "subdomain"
-           nametype which allows matching on any name within a
-           specified domain.
-           This option cannot be used with the <command>-z</command> option.
+           using the "name" nametype.
+           The default key name is
+           ddns-key.<replaceable class="parameter">name</replaceable>.
+           Note that the "self" nametype cannot be used, since
+           the name to be updated may differ from the key name.
+           This option cannot be used with the <option>-z</option> option.
          </para>
        </listitem>
       </varlistentry>
            using the "zonesub" nametype, allowing updates to all subdomain
            names within
            that <replaceable class="parameter">zone</replaceable>.
-           This option cannot be used with the <command>-s</command> option.
+           This option cannot be used with the <option>-s</option> option.
          </para>
        </listitem>
       </varlistentry>