aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar John Belamaric <jbelamaric@infoblox.com> 2018-03-25 11:48:57 -0400
committerGravatar Miek Gieben <miek@miek.nl> 2018-03-25 16:48:57 +0100
commit91413c25e12abdcdfcc3be9b1177251da905e882 (patch)
treec64c7abdd38cafcf72195685c9f5b12b8ae53445
parenta8d02d970c3707b6d40c280a4f0cd35590c6ed59 (diff)
downloadcoredns-91413c25e12abdcdfcc3be9b1177251da905e882.tar.gz
coredns-91413c25e12abdcdfcc3be9b1177251da905e882.tar.zst
coredns-91413c25e12abdcdfcc3be9b1177251da905e882.zip
Make examples complete Corefiles (#1623)
-rw-r--r--plugin/hosts/README.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/plugin/hosts/README.md b/plugin/hosts/README.md
index 3be25661a..f213f5b1d 100644
--- a/plugin/hosts/README.md
+++ b/plugin/hosts/README.md
@@ -48,23 +48,29 @@ Load `/etc/hosts` file.
Load `example.hosts` file in the current directory.
~~~
-hosts example.hosts
+. {
+ hosts example.hosts
+}
~~~
Load example.hosts file and only serve example.org and example.net from it and fall through to the
next plugin if query doesn't match.
~~~
-hosts example.hosts example.org example.net {
- fallthrough
+. {
+ hosts example.hosts example.org example.net {
+ fallthrough
+ }
}
~~~
Load hosts file inlined in Corefile.
~~~
-hosts example.hosts example.org {
- 10.0.0.1 example.org
- fallthrough
+. {
+ hosts example.hosts example.org {
+ 10.0.0.1 example.org
+ fallthrough
+ }
}
~~~