Skip to content

Commit 382fadd

Browse files
kyouheicfRebeccaTamachiro
authored andcommitted
[DNS] Add $ORIGIN, $TTL and $GENERATE directive support for zone file (#16120)
* [DNS] Add $ORIGIN, $TTL and $GENERATE directive support for zone file Add DNS Zone File Directives support * Add the error context, $INCLUDE directive not allowed * Text review: paragraphs re-org and style guide adjustments * Add link to BIND docs on directive --------- Co-authored-by: Rebecca Tamachiro <[email protected]>
1 parent 24f710b commit 382fadd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/content/docs/dns/manage-dns-records/how-to/import-and-export.mdx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ Use import and export to have more control over your DNS records and make proces
1212
## Import records
1313

1414
:::caution
15-
16-
{" "}
17-
18-
<Render file="zone-file-size-limit" />
15+
<Render file="zone-file-size-limit" />
1916
:::
2017

2118
### Format your zone file
@@ -92,3 +89,11 @@ f.example.com. 60 IN A 1.1.1.1 ; this is the comment cf_tags=tag1:value1,ta
9289
; Neither attribute
9390
g.example.com. 60 IN A 1.1.1.1
9491
```
92+
93+
## DNS zone file directives
94+
95+
A DNS zone file can be constructed using directives in addition to resource records (RRs). Directives start with `$` and are standardized - `$ORIGIN` and `$INCLUDE` are defined in [RFC 1035](https://www.rfc-editor.org/rfc/rfc1035#section-5.1), and `$TTL` is defined in [RFC 2308](https://www.rfc-editor.org/rfc/rfc2308). Additionally, BIND provides the [non-standard](https://bind9.readthedocs.io/en/latest/chapter3.html#bind-primary-file-extension-the-generate-directive) `$GENERATE` directive.
96+
97+
Cloudflare supports `$ORIGIN`, `$TTL`, and `$GENERATE` directives.
98+
99+
`$INCLUDE` is not supported. When a zone file contains a `$INCLUDE` directive, Cloudflare responds with a parsing error `$INCLUDE directive not allowed`.

0 commit comments

Comments
 (0)