On 3/20/23 13:41, Anand Buddhdev via nsd-users wrote:> Hi Robert, > > 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. -- inoc.net!rblayzor XMPP: rblayzor.AT.inoc.net PGP: https://pgp.inoc.net/rblayzor/
Lyndon Nerenberg (VE7TFX/VE6BBM)
2023-Mar-20 23:31 UTC
[nsd-users] NSD zone file GENERATE directive
Robert Blayzor via nsd-users writes:> > 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. --lyndon
On Mon, 20 Mar 2023 14:44:16 -0400 Robert Blayzor via nsd-users <nsd-users at lists.nlnetlabs.nl> wrote:> On 3/20/23 13:41, Anand Buddhdev via nsd-users wrote: > > Hi Robert, > > > > 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.It is not really possible to generate IPv6 PTRs (and AAAA records). Zone files would be all too large. For this you need dns server which can generate responses on fly, like knot-dns mod-synthrecord. https://www.knot-dns.cz/docs/latest/html/modules.html#synthrecord-automatic-forward-reverse-records Also powerdns can do similar with lua scripting but I don't have experience from that. -- Tuomo Soini <tis at foobar.fi> Foobar Linux services +358 40 5240030 Foobar Oy <https://foobar.fi/>