example

Source Home

Enable with
example:github.com/coredns/example

example - prints ‘example’ on every query received.

Description

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
}