Add middleware/erratic (#471)

This middleware allows playing with responses. Only one type is
implemented: it allows you to drop queries. I.e. withhold the response
from the client.
This commit is contained in:
Miek Gieben
2017-01-06 09:42:30 +00:00
committed by GitHub
parent 9a5e0c64fd
commit 53ac25d1c3
7 changed files with 253 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import (
_ "github.com/miekg/coredns/middleware/cache"
_ "github.com/miekg/coredns/middleware/chaos"
_ "github.com/miekg/coredns/middleware/dnssec"
_ "github.com/miekg/coredns/middleware/erratic"
_ "github.com/miekg/coredns/middleware/errors"
_ "github.com/miekg/coredns/middleware/etcd"
_ "github.com/miekg/coredns/middleware/file"

View File

@@ -96,4 +96,5 @@ var directives = []string{
"proxy",
"httpproxy",
"whoami",
"erratic",
}