mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
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
This commit is contained in:
@@ -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
|
||||
}
|
||||
~~~
|
||||
chaos CoreDNS-001 "Miek Gieben" miek@miek.nl
|
||||
|
||||
Or just default to `.`:
|
||||
|
||||
~~~ corefile
|
||||
. {
|
||||
chaos CoreDNS-001 info@coredns.io
|
||||
}
|
||||
~~~
|
||||
|
||||
And test with `dig`:
|
||||
|
||||
~~~ txt
|
||||
% dig @localhost CH TXT version.bind
|
||||
...
|
||||
;; ANSWER SECTION:
|
||||
version.bind. 0 CH TXT "CoreDNS-001"
|
||||
...
|
||||
~~~
|
||||
|
||||
Reference in New Issue
Block a user