BIND has a handy feature $GENERATE directive in zone files that allows you to handle large ranges of things like PTR/A records without having to actually create long lists in very large zonefiles.
This was handy for things like IPv4/v6 PTR's and matching A/AAAA records for large dynamic hosts, etc.
Does NSD support any type of range generation such at this?
> NSD doesn't understand the GENERATE directive. You'll have to create
> your zone files using a script or template engine.
Understood but certainly not helpful with large dynamic IPv6 PTR's...
Not that dynamic hosts NEED PTR's, but would still be nice to have.
lex(1) is your friend. For managing our reverse ip6 zones, we use a
simple file format (basically address, name, flags) to store the
raw address-to-hostname mapping, and then inhale that via a couple
of different template files that are processed by a simple lex(1)
program. Works a treat, and the whole process from edit to zone-reload
is driven by a simple makefile.
Haven't looked into the details of the GENERATE directive, but since
we're working on a new zone parser (simdzone), I can look into whether
we can support it at some point in the future.