Go to file
John Belamaric 3b9c7b40c1
Merge pull request #2 from chrisohaver/patch-1
middleware -> plugin
2018-02-14 10:17:05 -05:00
example_test.go Add tests and rename middleware to plugin 2018-01-26 18:43:28 +00:00
example.go Add tests and rename middleware to plugin 2018-01-26 18:43:28 +00:00
LICENSE Add license 2018-01-16 07:52:25 +00:00
README.md middleware -> plugin 2018-02-13 13:32:19 -05:00
setup_test.go Add tests and rename middleware to plugin 2018-01-26 18:43:28 +00:00
setup.go Fix for latest coredns 2017-09-15 21:29:47 +01:00

example

The example plugin 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.