aboutsummaryrefslogtreecommitdiff
path: root/plugin/etcd/handler.go
diff options
context:
space:
mode:
authorGravatar Nitish Tiwari <nitish@minio.io> 2018-06-30 20:49:13 +0530
committerGravatar Miek Gieben <miek@miek.nl> 2018-06-30 16:19:13 +0100
commit6fe27d99be622f69ac0b1d402a67a571c6f6166e (patch)
tree8ad19accd3f1a59137b3116396518c1031bb4701 /plugin/etcd/handler.go
parentf3afd700210ffee655672b90b8cb78698f1d9e42 (diff)
downloadcoredns-6fe27d99be622f69ac0b1d402a67a571c6f6166e.tar.gz
coredns-6fe27d99be622f69ac0b1d402a67a571c6f6166e.tar.zst
coredns-6fe27d99be622f69ac0b1d402a67a571c6f6166e.zip
plugin/etcdv3: Add etcd v3 plugin (#1702)
* Update dependencies and add etcdv3 client * Update etcd plugin to support etcd v3 clients Fixes #341
Diffstat (limited to 'plugin/etcd/handler.go')
-rw-r--r--plugin/etcd/handler.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/etcd/handler.go b/plugin/etcd/handler.go
index 8520680d8..b70684165 100644
--- a/plugin/etcd/handler.go
+++ b/plugin/etcd/handler.go
@@ -65,8 +65,7 @@ func (e *Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
// Do a fake A lookup, so we can distinguish between NODATA and NXDOMAIN
_, err = plugin.A(e, zone, state, nil, opt)
}
-
- if e.IsNameError(err) {
+ if err != nil && e.IsNameError(err) {
if e.Fall.Through(state.Name()) {
return plugin.NextOrFailure(e.Name(), e.Next, ctx, w, r)
}