Aucune description

John Belamaric 3b9c7b40c1 Merge pull request #2 from chrisohaver/patch-1 il y a 7 ans
LICENSE 06a23f27f8 Add license il y a 7 ans
README.md c9dc4122ab middleware -> plugin il y a 7 ans
example.go d9282030ca Add tests and rename middleware to plugin il y a 7 ans
example_test.go d9282030ca Add tests and rename middleware to plugin il y a 7 ans
setup.go fe5e8f02ad Fix for latest coredns il y a 7 ans
setup_test.go d9282030ca Add tests and rename middleware to plugin il y a 7 ans

README.md

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.