mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Make examples complete Corefiles (#1623)
This commit is contained in:
committed by
Miek Gieben
parent
a8d02d970c
commit
91413c25e1
@@ -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
|
||||
}
|
||||
}
|
||||
~~~
|
||||
|
||||
Reference in New Issue
Block a user