Knot 2's %s directive not consistent
In Knot 2, the template feature is great! One of the macros it allows is %s, which Knot substitutes with the zone name. However, it is being inconsistent. For all zones except the root, it strips the final dot. so if I have:
template:
- id: default
file: %szone
zone:
- domain: .
- domain: arpa.
- domain: root-servers.net.
Then the corresponding file names are:
.zone
arpazone
root-servers.netzone
Perhaps Knot should expand %s to whatever name the user has listed in the "zone" section, rather than removing the trailing dot.
Alternatively, Knot should expand the root zone to simply "" and let the macro work consistently for all zones, instead of making an exception for the root zone.
I like consistency :)