Maintained by: NLnet Labs

[Unbound-users] Patch: wildcard for include: statement

Paul Wouters
Wed Sep 26 19:33:43 CEST 2012


On Wed, 26 Sep 2012, Robert Edmonds wrote:

> +1 to ".d" style configuration.

I build exactly that into rawhide just now:

http://koji.fedoraproject.org/koji/taskinfo?taskID=4529344

It uses /etc/unbound.d/{keys.d,conf.d,local.d}

The split between conf.d and local.d is required because the current
unbound.conf parser cannot take local-data: statements outside of
the server: section. It would be nice if these could be merged, as
the difference might not be very obvious to end users.

>  but i think your patch is missing an update to doc/unbound.conf.5.in :)

:)

--- unbound-1.4.18-orig/doc/unbound.conf.5.in	2012-08-02
03:26:14.000000000 -0400
+++ unbound-1.4.18/doc/unbound.conf.5.in	2012-09-26
13:31:33.651165651 -0400
@@ -71,7 +71,7 @@
  .P
  Files can be included using the
  .B include:
-directive. It can appear anywhere, and takes a single filename as an argument.
+directive. It can appear anywhere, and accepts wildcards as an argument.
  Processing continues as if the text from the included file was copied into
  the config file at that point.  If also using chroot, using full path names
  for the included files works, relative pathnames for the included names work

Paul