Skip to content

Commit 1488354

Browse files
committed
Add notes on control directive
1 parent 37531d1 commit 1488354

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

SYNTAX.md renamed to FORMAT.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ really never happens. The same applies to base64 sequences, which was
6363
specifically designed to encode binary data in printable ASCII characters. To
6464
quote a field and include whitespace is more-or-less instructing the parser
6565
to not ignore it. The current implementation is such that any field may be
66-
quoted, but it may make sense to disallow fields that cannot contain
67-
structural characters to be quoted.
66+
quoted, but it MUST actually disallow fields that cannot contain structural
67+
characters to be quoted.
6868

6969
> BIND does not accept quoted fields for A or NS RDATA. TTL values in SOA
7070
> RDATA, base64 Signature in DNSKEY RDATA, as well as type, class and TTL
@@ -161,3 +161,11 @@ structural characters to be quoted.
161161
> interpret that as stating that each label can individually can be quoted,
162162
> that is however not the case. NSD and BIND both print a syntax error if
163163
> such a construct occurs.
164+
165+
* RFC1035 specifies two control directives "$INCLUDE" and "$ORIGIN". RFC2308
166+
specifies the "$TTL" directive. BIND implements the "$GENERATE" directive.
167+
Since "$" (dollar sign) is not reserved, "$GENERATE" (and "$TTL" before
168+
RFC2308) is considered a valid hostname in other implementations. It seems
169+
"$" is better considered a reserved character (possibly limiting it's
170+
special status to the start of the line), to allow for reliable
171+
extensibility in the future.

0 commit comments

Comments
 (0)