]> git.ipfire.org Git - thirdparty/bind9.git/commit
new: usr: add extra tokens to the zone file name template
authorColin Vidal <colin@isc.org>
Mon, 8 Sep 2025 10:46:48 +0000 (12:46 +0200)
committerColin Vidal <colin@isc.org>
Mon, 8 Sep 2025 10:46:48 +0000 (12:46 +0200)
commitb449fa950052de1557dbcd42d472a4157773eb08
tree6aeb46d283f87c53263d74f3a8d3648ff6974f0a
parentc0d12c13288526f05b970537215b6c917d0d8f5e
parent0e1f13e05c0f1117d5d05ebb27b1e1d1afcb51a0
new: usr: add extra tokens to the zone file name template

Extend the `$name`, `$view` and `$type` tokens (expanding into the zone
name, zone's view name and type); the new following tokens are now also
accepted:

- `$name` or `%s` is replaced with the zone name in lower case;
- `$type` or `%t` is replaced with the zone type -- i.e., primary,
  secondary, etc);
- `$view` or `%v` is replaced with the view name;
- `$char1` or `%1` is replaced with the first character of the zone name;
- `$char2` or `%2` is replaced with the second character of the zone name
  (or a dot if there is no second character);
- `$char3` or `%3` is replaced with the third character of the zone name (or
  a dot if there is no third character);
- `$label1` or `%z` is replaced with the toplevel domain of the zone (or a
  dot if it is the root zone);
- `$label2` or `%y` is replaced with the next label under the toplevel
  domain (or a dot if there is no next label);
- `$label3` or `%x` is replaced with the next-next label under the toplevel
  domain (or a dot if there is no next-next label).

Closes #85

Merge branch '85-file-template' into 'main'

See merge request isc-projects/bind9!10779