example_test.go | ||
example.go | ||
LICENSE | ||
README.md | ||
setup_test.go | ||
setup.go |
example
The example middleware prints "example" on every query received. It can be used as documentation for writing external plugins and to test if external plugins compile with CoreDNS.
Syntax
example
Examples
example.com {
file example.com.db {
upstream 8.8.8.8
}
example
}
How to Enable
Follow these steps, example should be put relatively early in the plugin chain.