[nsd-users] Can't get pattern substition to work

Lew Payne lew.payne at gmail.com
Sun Mar 9 18:22:48 UTC 2014

I'm upgrading to nsd v4.0.1 (from a six year old release).  I've crafted a
new nsd.conf by hand, and would like to take advantage of the "pattern"
feature.  I've read the man page, looked at the sample conf file, and even
poured through the 16-OCT-2013 slide presentation.  My nsd.conf conforms to
the required standard, yet there seems to be a failure when using
substitution patterns.

This fails...

....name: "solozones"
....zonefile: "zones/db.%s"
....provide-xfr: NOKEY

....name: "whatever.com"
....include-pattern: "solozones"

producing a "could not find pattern solozones" error.  I've also tried
using "zones/db.%y.%z" as well as "zones/db.\%s" as the zonefile pattern,
to no avail.  The problem seems to be in substitution (it would help if it
showed the substitution/expansion in the error output)... because the
following works:

....name: "solozones"
....zonefile: "zones/db.whatever.com"
....provide-xfr: NOKEY

Can someone please tell me what I'm doing wrong, and how to work around
this problem?  I want to hard-code (lock down) the zones into nsd.conf,
rather than use nsd-control addzone (for PCI and HIPAA reasons).

I hope someone brighter than me can spot why this isn't working.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20140309/8a110aaf/attachment.htm>

More information about the nsd-users mailing list