mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:50:00 -04:00
Add rndc.conf grammar into doc/misc
It uses the same mechanism as all other grammars, but the file is named
differently to distinguish it from named.conf grammars.
(cherry picked from commit fb474de3ab)
This commit is contained in:
parent
214da1de67
commit
e9d21cee3b
3 changed files with 26 additions and 0 deletions
|
|
@ -156,6 +156,7 @@ Files: **/.clang-format
|
|||
doc/misc/*.zoneopt
|
||||
doc/misc/options
|
||||
doc/misc/options.active
|
||||
doc/misc/rndc.grammar
|
||||
tsan-suppressions.txt
|
||||
Copyright: Internet Systems Consortium, Inc. ("ISC")
|
||||
License: CC0-1.0
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ include $(top_srcdir)/Makefile.top
|
|||
include $(top_srcdir)/Makefile.docs
|
||||
|
||||
OPTIONS_FILES = \
|
||||
rndc.grammar \
|
||||
options \
|
||||
options.active \
|
||||
primary.zoneopt \
|
||||
|
|
@ -69,6 +70,9 @@ cfg_test_LDADD = \
|
|||
BUILT_SOURCES = \
|
||||
$(OPTIONS_FILES)
|
||||
|
||||
rndc.grammar: cfg_test
|
||||
$(AM_V_CFG_TEST)$(builddir)/cfg_test --rndc --grammar | $(PERL) $(srcdir)/sort-options.pl > $@
|
||||
|
||||
options: cfg_test
|
||||
$(AM_V_CFG_TEST)$(builddir)/cfg_test --named --grammar | $(PERL) $(srcdir)/sort-options.pl > $@
|
||||
|
||||
|
|
|
|||
21
doc/misc/rndc.grammar
Normal file
21
doc/misc/rndc.grammar
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
key <string> {
|
||||
algorithm <string>;
|
||||
secret <string>;
|
||||
}; // may occur multiple times
|
||||
|
||||
options {
|
||||
default-key <string>;
|
||||
default-port <integer>;
|
||||
default-server <string>;
|
||||
default-source-address ( <ipv4_address> | * );
|
||||
default-source-address-v6 ( <ipv6_address> | * );
|
||||
};
|
||||
|
||||
server <string> {
|
||||
addresses { ( <quoted_string> [ port <integer> ] [ dscp <integer> ] | <ipv4_address> [ port <integer> ] [ dscp <integer> ] | <ipv6_address> [ port <integer> ] [ dscp <integer> ] ); ... };
|
||||
key <string>;
|
||||
port <integer>;
|
||||
source-address ( <ipv4_address> | * );
|
||||
source-address-v6 ( <ipv6_address> | * );
|
||||
}; // may occur multiple times
|
||||
|
||||
Loading…
Reference in a new issue