From: Tatuya JINMEI 神明達哉 Date: Thu, 2 Jul 2009 22:50:24 +0000 (+0000) Subject: the update-policy template doesn't match the implementation. [RT #19877] X-Git-Tag: v9.5.2b1~36^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6493425eaa8d09485bcbf78e4f854b1a35ef71ed;p=thirdparty%2Fbind9.git the update-policy template doesn't match the implementation. [RT #19877] for 9.7.0a2. --- diff --git a/bin/confgen/ddns-confgen.c b/bin/confgen/ddns-confgen.c index fe3d20b3656..f25a15a1ad1 100644 --- a/bin/confgen/ddns-confgen.c +++ b/bin/confgen/ddns-confgen.c @@ -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\ diff --git a/bin/confgen/ddns-confgen.docbook b/bin/confgen/ddns-confgen.docbook index a7e6eb9c4bf..bd707bac60a 100644 --- a/bin/confgen/ddns-confgen.docbook +++ b/bin/confgen/ddns-confgen.docbook @@ -17,7 +17,7 @@ - PERFORMANCE OF THIS SOFTWARE. --> - + Jan 29, 2009 @@ -115,7 +115,7 @@ Specifies the key name of the DDNS authentication key. The default is ddns-key when neither - the -s nor -z option is + the nor option is specified; otherwise, the default is ddns-key as a separate label followed by the argument of the option, e.g., @@ -157,13 +157,15 @@ -s name - Self mode: The example named.conf text - shows how to set an update policy for the specified + Single host mode: The example named.conf text + shows how to set an update policy for the specified name - 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 -z option. + using the "name" nametype. + The default key name is + ddns-key.name. + 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. @@ -178,7 +180,7 @@ using the "zonesub" nametype, allowing updates to all subdomain names within that zone. - This option cannot be used with the -s option. + This option cannot be used with the option.