|  | 7 年 前 | |
|---|---|---|
| LICENSE | 7 年 前 | |
| README.md | 7 年 前 | |
| example.go | 7 年 前 | |
| example_test.go | 7 年 前 | |
| setup.go | 8 年 前 | |
| setup_test.go | 7 年 前 | 
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.
example
example.com {
  file example.com.db {
    upstream 8.8.8.8
  }
  example
}
Follow these steps, example should be put relatively early in the plugin chain.