aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/handler.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2020-07-08 09:00:26 -0700
committerGravatar GitHub <noreply@github.com> 2020-07-08 09:00:26 -0700
commit614d08cba29ed4904d11008e795c081c4f392b77 (patch)
treee4601abda23ec9d18e2929433c260a37928e1344 /plugin/kubernetes/handler.go
parent68f1dd5ddf0451cc3a1b24a72c2965b8d896ffba (diff)
downloadcoredns-614d08cba29ed4904d11008e795c081c4f392b77.tar.gz
coredns-614d08cba29ed4904d11008e795c081c4f392b77.tar.zst
coredns-614d08cba29ed4904d11008e795c081c4f392b77.zip
Revert "Implement notifies for transfer plugin (#3972)" (#3995)
This reverts commit 68f1dd5ddf0451cc3a1b24a72c2965b8d896ffba. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'plugin/kubernetes/handler.go')
-rw-r--r--plugin/kubernetes/handler.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/kubernetes/handler.go b/plugin/kubernetes/handler.go
index 57e9ac528..78761d303 100644
--- a/plugin/kubernetes/handler.go
+++ b/plugin/kubernetes/handler.go
@@ -28,6 +28,8 @@ func (k Kubernetes) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.M
)
switch state.QType() {
+ case dns.TypeAXFR, dns.TypeIXFR:
+ k.Transfer(ctx, state)
case dns.TypeA:
records, err = plugin.A(ctx, &k, zone, state, nil, plugin.Options{})
case dns.TypeAAAA: