aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2022-04-23 16:51:56 -0400
committerGravatar GitHub <noreply@github.com> 2022-04-23 16:51:56 -0400
commit0e5d2761251f2da5e322ec77bf50c1c3b39b5031 (patch)
treedc29ba198d29b3f059abc5586a23f4657732c9ec /plugin
parentd4165fdb3b34e0144476eb8bd2fe239ce33ec1f2 (diff)
downloadcoredns-0e5d2761251f2da5e322ec77bf50c1c3b39b5031.tar.gz
coredns-0e5d2761251f2da5e322ec77bf50c1c3b39b5031.tar.zst
coredns-0e5d2761251f2da5e322ec77bf50c1c3b39b5031.zip
plugin/template: fix rcode option documentation (#5328)
* docs: fix incorrect default rcode value, and reference source for valid values Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin')
-rw-r--r--plugin/template/README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/template/README.md b/plugin/template/README.md
index 6d0d3b27e..bb7698b3c 100644
--- a/plugin/template/README.md
+++ b/plugin/template/README.md
@@ -27,7 +27,8 @@ template CLASS TYPE [ZONE...] {
* **REGEX** [Go regexp](https://golang.org/pkg/regexp/) that are matched against the incoming question name. Specifying no regex matches everything (default: `.*`). First matching regex wins.
* `answer|additional|authority` **RR** A [RFC 1035](https://tools.ietf.org/html/rfc1035#section-5) style resource record fragment
built 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`.
+* `rcode` **CODE** A response code (`NXDOMAIN, SERVFAIL, ...`). The default is `NOERROR`. Valid response code values are
+ per the `RcodeToString` map defined by the `miekg/dns` package in `msg.go`.
* `fallthrough` Continue with the next plugin if the zone matched but no regex matched.
If specific zones are listed (for example `in-addr.arpa` and `ip6.arpa`), then only queries for
those zones will be subject to fallthrough.