]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix named.conf man page documentation
authorMatthijs Mekking <matthijs@isc.org>
Mon, 14 Mar 2022 10:32:46 +0000 (11:32 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 15 Mar 2022 13:13:45 +0000 (14:13 +0100)
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
doc/man/named.conf.5in
doc/misc/rst-options.pl

index 6fc7d8175c0e05607509fda51b75b2fbfc6b79a6..9b61c12f3f88af678beda8edea36e98837a11b52 100644 (file)
@@ -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
index ec2c6b47f6db58d4eda127f79565d3141e8cb264..08ed18584ebaaa01582fad52637d44e010fc40d6 100644 (file)
@@ -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
index 79a934dbcc5b4c716b80d858313db8e21dbf560b..eeb023a1c1b6dcb4cc0c3deca624d3e9dcdbc59c 100644 (file)
@@ -79,6 +79,8 @@ while (<FH>) {
        }
 }
 
+my $UNDERLINE;
+
 my $blank = 0;
 while (<FH>) {
        if (m{// not.*implemented} || m{// obsolete} ||
@@ -97,7 +99,7 @@ while (<FH>) {
        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 (<FH>) {
 
 }
 
+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 <<END;
 .. include:: ../../doc/misc/primary.zoneopt.rst
 .. include:: ../../doc/misc/secondary.zoneopt.rst