Commit 91413c25 authored by John Belamaric's avatar John Belamaric Committed by Miek Gieben

Make examples complete Corefiles (#1623)

parent a8d02d97
...@@ -48,23 +48,29 @@ Load `/etc/hosts` file. ...@@ -48,23 +48,29 @@ Load `/etc/hosts` file.
Load `example.hosts` file in the current directory. 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 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. 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. Load hosts file inlined in Corefile.
~~~ ~~~
hosts example.hosts example.org { . {
10.0.0.1 example.org hosts example.hosts example.org {
fallthrough 10.0.0.1 example.org
fallthrough
}
} }
~~~ ~~~
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment