aboutsummaryrefslogtreecommitdiff
path: root/middleware/etcd/stub_handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/etcd/stub_handler.go')
-rw-r--r--middleware/etcd/stub_handler.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/middleware/etcd/stub_handler.go b/middleware/etcd/stub_handler.go
index 10a3d2198..b5120041a 100644
--- a/middleware/etcd/stub_handler.go
+++ b/middleware/etcd/stub_handler.go
@@ -16,6 +16,7 @@ type Stub struct {
Zone string // for what zone (and thus what nameservers are we called)
}
+// ServeDNS implements the middleware.Handler interface.
func (s Stub) ServeDNS(ctx context.Context, w dns.ResponseWriter, req *dns.Msg) (int, error) {
if hasStubEdns0(req) {
log.Printf("[WARNING] Forwarding cycle detected, refusing msg: %s", req.Question[0].Name)