Go to file
2017-07-29 10:48:27 +01:00
example.go More comments 2017-07-29 10:48:27 +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.