From 01b125ff056b46640b7c41500237a2b29dcfa461 Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Mon, 14 Mar 2022 11:32:46 +0100 Subject: [PATCH] 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. --- bin/named/named.conf.rst | 5 +++++ doc/man/named.conf.5in | 3 +++ doc/misc/rst-options.pl | 10 +++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/bin/named/named.conf.rst b/bin/named/named.conf.rst index 6fc7d8175c..9b61c12f3f 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 ec2c6b47f6..08ed18584e 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 79a934dbcc..eeb023a1c1 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 <