aboutsummaryrefslogtreecommitdiff
path: root/plugin/backend_lookup.go
diff options
context:
space:
mode:
authorGravatar ntoofu <ntoofu@users.noreply.github.com> 2021-05-04 00:48:51 +0900
committerGravatar GitHub <noreply@github.com> 2021-05-03 08:48:51 -0700
commit696c8731d65b30e2562f89b16a4b12da79eb5ae9 (patch)
tree35aab6b3e5197ab71eba96f240b4d8d5850d812c /plugin/backend_lookup.go
parent32e2bd1ddd2840a9e7e857e1b9775e24086076ae (diff)
downloadcoredns-696c8731d65b30e2562f89b16a4b12da79eb5ae9.tar.gz
coredns-696c8731d65b30e2562f89b16a4b12da79eb5ae9.tar.zst
coredns-696c8731d65b30e2562f89b16a4b12da79eb5ae9.zip
plugin/etcd: Fix inconsistent names of glue records with TargetStrip (#4595)
* etcd plugin: Add testcases for `TargetStrip` feature Signed-off-by: ntoofu <ntoofu@users.noreply.github.com> * etcd plugin: Fix inconsistent names in glue records Signed-off-by: ntoofu <ntoofu@users.noreply.github.com>
Diffstat (limited to 'plugin/backend_lookup.go')
-rw-r--r--plugin/backend_lookup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/backend_lookup.go b/plugin/backend_lookup.go
index 5e08efb78..b2bfa7c66 100644
--- a/plugin/backend_lookup.go
+++ b/plugin/backend_lookup.go
@@ -440,8 +440,8 @@ func NS(ctx context.Context, b ServiceBackend, zone string, state request.Reques
case dns.TypeA, dns.TypeAAAA:
serv.Host = msg.Domain(serv.Key)
- extra = append(extra, newAddress(serv, serv.Host, ip, what))
ns := serv.NewNS(state.QName())
+ extra = append(extra, newAddress(serv, ns.Ns, ip, what))
if _, ok := seen[ns.Ns]; ok {
continue
}