1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

BIND: Automatically create the subdirectories leading up to zonefiles (#2397)

This commit is contained in:
Tom Limoncelli
2023-05-26 13:16:20 -04:00
committed by GitHub
parent 3492b26d0a
commit 207ed695cf
2 changed files with 30 additions and 3 deletions

View File

@@ -96,7 +96,6 @@ The filenameformat is a string with a few printf-like `%` verbs:
* `%%` `%`
* ordinary characters (not `%`) are copied unchanged to the output stream
* FYI: format strings must not end with an incomplete `%` or `%?`
* FYI: `/` or other filesystem separators result in undefined behavior
Typical values:
@@ -116,6 +115,12 @@ a different `directory` setting. Otherwise `dnscontrol` will write
both domains to the same file, flapping between the two back and
forth.
(new in v4.2.0) `dnscontrol push` will create subdirectories along the path to
the filename. This includes both the portion of the path created by the
`directory` setting and the `filenameformat` setting. The automatic creation of
subdirectories is disabled if `dnscontrol` is running as root for security
reasons.
# FYI: get-zones
The DNSControl `get-zones all` subcommand scans the directory for