通过通配符包含在unbound.conf中

根据其手册页 (Section FORMAT ),unbound的configuration指令include: “[…]可用于包含多个文件,请参阅glob(7)。”

现在,不pipe这个指令是什么

 include: /etc/unbound/zones/*.conf 

或一般,全部包括

 include: /etc/unbound/zones/* 

我在服务启动时收到的消息是:

 Restarting recursive DNS server: unbound/etc/unbound/unbound.conf:17: error: cannot open include file '/etc/unbound/zone/*': No such file or directory read /etc/unbound/unbound.conf failed: 1 errors in configuration file [1420997682] unbound[17125:0] fatal error: Could not read config file: /etc/unbound/unbound.conf 

只有完全合格的文件名称工作。

我该如何解释手册页的内容? 我解释错了吗? glob应该允许通配符,对吧?


系统信息:RasPi上的Debian Wheezy,未绑定1.4.17-3 + deb7u2

这就是unbound.conf(5)手册页的1.4.17-3 + deb7u2版本所说的include

  Files can be included using the include: directive. It can appear any‐ where, and takes a single filename as an argument. Processing contin‐ ues 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 if the directory where the daemon is started equals its chroot/working directory. 

正如你所看到的,在1.4.17的手册页中不存在本节中在未绑定网站(当前版本的手册页,此时为1.5.1)引用通配符和glob的语句-3 + deb7u2。

我想象一下,使用glob作为include语句就是在后面的版本中引入的一个简单function。