Fix readme
This commit is contained in:
parent
3b9c7b40c1
commit
8144a5e8d5
24
README.md
24
README.md
@ -1,7 +1,13 @@
|
|||||||
# example
|
# example
|
||||||
|
|
||||||
The example plugin prints "example" on every query received. It can be used as documentation for
|
## Namme
|
||||||
writing external plugins and to test if external plugins compile with CoreDNS.
|
|
||||||
|
*example* - prints "example" on every query received.
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
The example plugin prints "example" on every query received. It servesused as documentation for
|
||||||
|
writing CoreDNS plugins.
|
||||||
|
|
||||||
## Syntax
|
## Syntax
|
||||||
|
|
||||||
@ -11,16 +17,12 @@ example
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
In this configuration, we forward all queries to 9.9.9.9 and print "example" whenever we recieve
|
||||||
|
a query.
|
||||||
|
|
||||||
``` corefile
|
``` corefile
|
||||||
example.com {
|
. {
|
||||||
file example.com.db {
|
forward . 9.9.9.9
|
||||||
upstream 8.8.8.8
|
|
||||||
}
|
|
||||||
example
|
example
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## How to Enable
|
|
||||||
|
|
||||||
Follow [these](https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/) steps,
|
|
||||||
*example* should be put relatively early in the plugin chain.
|
|
||||||
|
Loading…
Reference in New Issue
Block a user