josephholsten/unbound-cookbook — pull request #2 by chuckg (2014-08-22 18:28:13+00:00)
Title: Fix local-zone configuration from causing syntax error

Currently the `local-zones` configuration include is beneath the `python:` clause, which causes the following error when configuration is added to `/etc/unbound/conf.d/local-zone.conf`:

```
# /etc/init.d/unbound restart
* Restarting recursive DNS server unbound /etc/unbound/conf.d/local-zone.conf:37: error: syntax error
read /etc/unbound/conf.d/local-zone.conf failed: 1 errors in configuration file
[1408731580] unbound[31831:0] fatal error: Could not read config file: /etc/unbound/unbound.conf
```

`local-zone` clauses must be included in the main `server:` clause, this patch simply moves the `include:`'s up so that configuration within the local zones file does not cause the server to barf. See http://www.unbound.net/documentation/unbound.conf.html for more information on `local-zone` clauses.