From: Matthijs Mekking Date: Mon, 14 Mar 2022 10:32:46 +0000 (+0100) Subject: Fix named.conf man page documentation X-Git-Tag: v9.19.0~63^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01b125ff056b46640b7c41500237a2b29dcfa461;p=thirdparty%2Fbind9.git Fix named.conf man page documentation Commit 4ca74eee49363a9c24c561a742f0abdd7f71d2a8 update the zone grammar such that the zone statement is printed with the valid options per zone type. This commit is a follow-up, putting back the ZONE heading and adding a note that these zone statements may also be put inside the view statement. It is tricky to actually print the zone statements inside the view statement, and so we decided that we would add a note to say that this is possible. --- diff --git a/bin/named/named.conf.rst b/bin/named/named.conf.rst index 6fc7d8175c0..9b61c12f3f8 100644 --- a/bin/named/named.conf.rst +++ b/bin/named/named.conf.rst @@ -885,6 +885,11 @@ VIEW zone-statistics ( full | terse | none | boolean ); }; +ZONE +^^^^ + +Any of these zone statements can also be set inside the view statement. + .. include:: ../../doc/misc/primary.zoneopt.rst .. include:: ../../doc/misc/secondary.zoneopt.rst .. include:: ../../doc/misc/mirror.zoneopt.rst diff --git a/doc/man/named.conf.5in b/doc/man/named.conf.5in index ec2c6b47f6d..08ed18584eb 100644 --- a/doc/man/named.conf.5in +++ b/doc/man/named.conf.5in @@ -974,6 +974,9 @@ view string [ class ] { .fi .UNINDENT .UNINDENT +.SS ZONE +.sp +Any of these zone statements can also be set inside the view statement. .INDENT 0.0 .INDENT 3.5 .sp diff --git a/doc/misc/rst-options.pl b/doc/misc/rst-options.pl index 79a934dbcc5..eeb023a1c1b 100644 --- a/doc/misc/rst-options.pl +++ b/doc/misc/rst-options.pl @@ -79,6 +79,8 @@ while () { } } +my $UNDERLINE; + my $blank = 0; while () { if (m{// not.*implemented} || m{// obsolete} || @@ -97,7 +99,7 @@ while () { s{ }{\t}g; if (m{^([a-z0-9-]+) }) { my $HEADING = uc $1; - my $UNDERLINE = $HEADING; + $UNDERLINE = $HEADING; $UNDERLINE =~ s/./^/g; print $HEADING . "\n"; print $UNDERLINE . "\n\n"; @@ -123,6 +125,12 @@ while () { } +print "ZONE\n"; +$UNDERLINE = "ZONE"; +$UNDERLINE =~ s/./^/g; +print $UNDERLINE . "\n\n"; +print "Any of these zone statements can also be set inside the view statement.\n\n"; + print <