/* This is a BIND comment as in C */ // This is a BIND comment as in C++ # This is a BIND comment as in common UNIX shells and perl
Comments may appear anywhere that whitespace may appear in a BIND configuration file.
C-style comments start with the two characters
(slash, asterisk) and end with
*/ (asterisk, slash). Because
they are completely delimited with these characters, you can use them
to comment only a portion of a line or to span multiple lines.
You cannot nest C-style comments. For example, the following is
not valid because the entire comment ends with the first
/* This is the start of a comment. This is still part of the comment. /* This is an incorrect attempt at nesting a comment. */ This is no longer in any comment. */
C++-style comments start with the two characters
(slash, slash) and continue to the end of the physical line. You cannot
continue them across multiple physical lines; to have one
logical comment span multiple lines, each line must use the
// pair. For example:
// This is the start of a comment. The next line // is a new comment, even though it is logically // part of the previous comment.
Shell-style (or perl-style) comments start with the
# (hash or number sign) and continue to the
end of the physical line, like C++ comments.
# This is the start of a comment. The next line # is a new comment, even though it is logically # part of the previous comment.
WARNING: You cannot use the
(semicolon) character to start a comment such as you would in a zone
file. The semicolon indicates the end of a configuration statement,
so whatever follows it is interpreted as the start of the next