2017-07-29 08:17:24 +00:00
|
|
|
# example
|
|
|
|
|
2018-02-13 18:32:19 +00:00
|
|
|
The example plugin prints "example" on every query received. It can be used as documentation for
|
2018-01-26 18:43:28 +00:00
|
|
|
writing external plugins and to test if external plugins compile with CoreDNS.
|
2017-07-29 08:17:24 +00:00
|
|
|
|
|
|
|
## Syntax
|
|
|
|
|
|
|
|
~~~ txt
|
|
|
|
example
|
|
|
|
~~~
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2018-01-26 18:43:28 +00:00
|
|
|
``` corefile
|
2017-07-29 08:17:24 +00:00
|
|
|
example.com {
|
|
|
|
file example.com.db {
|
|
|
|
upstream 8.8.8.8
|
|
|
|
}
|
|
|
|
example
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## How to Enable
|
|
|
|
|
2017-09-15 20:34:39 +00:00
|
|
|
Follow [these](https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/) steps,
|
2017-09-15 20:36:55 +00:00
|
|
|
*example* should be put relatively early in the plugin chain.
|