Go to file
Miek Gieben 4932cca5e2 typo
2017-07-29 09:25:02 +01:00
example.go rename 2017-07-29 09:22:41 +01:00
README.md typo 2017-07-29 09:25:02 +01:00
setup.go Add example middleware 2017-07-29 09:17:24 +01:00

example

The example middleware prints "example" on every query received. It can be used as documentation for writing external middleware and to test if external middleware compiles 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 middleware chain.