middleware/etcd: Use the correct endpoint

The endpoint for etcd as wrongly set if a proxy was configured.
Clean up some documentation in the process as well.
This commit is contained in:
Miek Gieben 2016-04-19 12:52:05 +00:00
parent 913cffd4a8
commit a1e6cb7cf4
9 changed files with 8 additions and 24 deletions

View file

@ -73,6 +73,7 @@ func (e Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i
return e.Err(zone, dns.RcodeNameError, state)
}
if err != nil {
println("returning error", err.Error())
return dns.RcodeServerFailure, err
}