Go to file
2018-02-25 08:52:52 +00:00
example_test.go Document and cleanup 2018-02-25 08:52:52 +00:00
example.go Document and cleanup 2018-02-25 08:52:52 +00:00
LICENSE Add license 2018-01-16 07:52:25 +00:00
README.md Add tests and rename middleware to plugin 2018-01-26 18:43:28 +00:00
setup_test.go Document and cleanup 2018-02-25 08:52:52 +00:00
setup.go Document and cleanup 2018-02-25 08:52:52 +00:00

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.