mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
Small doc style updates in the host middleware
This commit is contained in:
@@ -10,7 +10,7 @@ available hosts files that block access to advertising servers.
|
|||||||
## Syntax
|
## Syntax
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
hosts FILE [ZONES...] {
|
hosts [FILE [ZONES...]] {
|
||||||
fallthrough
|
fallthrough
|
||||||
}
|
}
|
||||||
~~~
|
~~~
|
||||||
@@ -23,20 +23,20 @@ hosts FILE [ZONES...] {
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
Load /etc/hosts file
|
Load `/etc/hosts` file.
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
hosts
|
hosts
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Load example.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
|
Load example.hosts file and only serve example.org and example.net from it and fall through to the
|
||||||
next middleware if query doesn't match
|
next middleware if query doesn't match.
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
hosts example.hosts example.org example.net {
|
hosts example.hosts example.org example.net {
|
||||||
|
|||||||
Reference in New Issue
Block a user