Go to file
Miek Gieben 1fb7424a47 Add example middleware
Serves both as documentation and to test external middleware
compilation.
2017-07-29 09:17:24 +01:00
alias.go Add example middleware 2017-07-29 09:17:24 +01:00
README.md Add example middleware 2017-07-29 09:17:24 +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.