aboutsummaryrefslogtreecommitdiff
path: root/middleware
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-09-10 21:01:49 +0100
committerGravatar GitHub <noreply@github.com> 2017-09-10 21:01:49 +0100
commit176e0916fef310ccaf51e8b264a419df0ef4d446 (patch)
tree68d275bb0a31504901683abbefac631c0301ec3e /middleware
parent2cff9291e50c1eaffa1eb782753e9c5aaa4a6506 (diff)
downloadcoredns-176e0916fef310ccaf51e8b264a419df0ef4d446.tar.gz
coredns-176e0916fef310ccaf51e8b264a419df0ef4d446.tar.zst
coredns-176e0916fef310ccaf51e8b264a419df0ef4d446.zip
mw/chaos: update docs (#1055)
* mw/chaos: update docs Fix/update the documentation: make the corefile snippets tested and expand them a little. Show `dig` example. Fixes #1050 * dot
Diffstat (limited to 'middleware')
-rw-r--r--middleware/chaos/README.md24
1 files changed, 23 insertions, 1 deletions
diff --git a/middleware/chaos/README.md b/middleware/chaos/README.md
index d3c571e1f..264ab0601 100644
--- a/middleware/chaos/README.md
+++ b/middleware/chaos/README.md
@@ -19,6 +19,28 @@ following zones: `version.bind`, `version.server`, `authors.bind`, `hostname.bin
## Examples
+Specify all the zones in full.
+
+~~~ corefile
+version.bind version.server authors.bind hostname.bind id.server {
+ chaos CoreDNS-001 info@coredns.io
+}
+~~~
+
+Or just default to `.`:
+
+~~~ corefile
+. {
+ chaos CoreDNS-001 info@coredns.io
+}
~~~
-chaos CoreDNS-001 "Miek Gieben" miek@miek.nl
+
+And test with `dig`:
+
+~~~ txt
+% dig @localhost CH TXT version.bind
+...
+;; ANSWER SECTION:
+version.bind. 0 CH TXT "CoreDNS-001"
+...
~~~