Go to file
2018-01-16 07:52:25 +00:00
example.go Fix for latest coredns 2017-09-15 21:29:47 +01:00
LICENSE Add license 2018-01-16 07:52:25 +00:00
README.md update 2017-09-15 21:36:55 +01:00
setup.go Fix for latest coredns 2017-09-15 21:29:47 +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 plugin chain.