2017-07-29 08:17:24 +00:00
|
|
|
# example
|
|
|
|
|
2018-02-22 14:06:00 +00:00
|
|
|
## Name
|
2018-02-22 14:05:25 +00:00
|
|
|
|
|
|
|
*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.
|
2017-07-29 08:17:24 +00:00
|
|
|
|
|
|
|
## Syntax
|
|
|
|
|
|
|
|
~~~ txt
|
|
|
|
example
|
|
|
|
~~~
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2018-02-22 14:05:25 +00:00
|
|
|
In this configuration, we forward all queries to 9.9.9.9 and print "example" whenever we recieve
|
|
|
|
a query.
|
|
|
|
|
2018-01-26 18:43:28 +00:00
|
|
|
``` corefile
|
2018-02-22 14:05:25 +00:00
|
|
|
. {
|
|
|
|
forward . 9.9.9.9
|
2017-07-29 08:17:24 +00:00
|
|
|
example
|
|
|
|
}
|
|
|
|
```
|