From 53ac25d1c327ea2c2924a2e90b510764be94319e Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 6 Jan 2017 09:42:30 +0000 Subject: 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. --- core/coredns.go | 1 + core/dnsserver/directives.go | 1 + 2 files changed, 2 insertions(+) (limited to 'core') diff --git a/core/coredns.go b/core/coredns.go index c74f7b0a5..0ef1789b1 100644 --- a/core/coredns.go +++ b/core/coredns.go @@ -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" diff --git a/core/dnsserver/directives.go b/core/dnsserver/directives.go index 35e01b692..4d80331b8 100644 --- a/core/dnsserver/directives.go +++ b/core/dnsserver/directives.go @@ -96,4 +96,5 @@ var directives = []string{ "proxy", "httpproxy", "whoami", + "erratic", } -- cgit v1.2.3