plugin/template: small tweaks (#1366)

Small README updates, and fallthrough fixes (using less code)
This commit is contained in:
Miek Gieben
2018-01-09 21:48:32 +00:00
committed by GitHub
parent 0091e1c9dc
commit a19ea63d3a
5 changed files with 46 additions and 51 deletions

View File

@@ -15,8 +15,8 @@ template CLASS TYPE [ZONE...] {
[additional RR]
[authority RR]
[...]
[rcode responsecode]
[fallthrough [fallthrough zone...]]
[rcode CODE]
[fallthrough [ZONE...]]
}
~~~
@@ -28,7 +28,8 @@ template CLASS TYPE [ZONE...] {
build by a [Go template](https://golang.org/pkg/text/template/) that contains the reply.
* `rcode` **CODE** A response code (`NXDOMAIN, SERVFAIL, ...`). The default is `SUCCESS`.
* `fallthrough` Continue with the next plugin if the zone matched but no regex did not match.
* `fallthrough zone` One or more zones that may fall through to other plugins. Defaults to all zones of the template.
If specific zones are listed (for example `in-addr.arpa` and `ip6.arpa`), then only queries for
those zones will be subject to fallthrough.
At least one `answer` or `rcode` directive is needed (e.g. `rcode NXDOMAIN`).