aboutsummaryrefslogtreecommitdiff
path: root/plugin/file/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/file/file.go')
-rw-r--r--plugin/file/file.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugin/file/file.go b/plugin/file/file.go
index d8de85cd3..1c586dd6d 100644
--- a/plugin/file/file.go
+++ b/plugin/file/file.go
@@ -8,6 +8,7 @@ import (
"github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log"
+ "github.com/coredns/coredns/plugin/transfer"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
@@ -20,6 +21,7 @@ type (
File struct {
Next plugin.Handler
Zones
+ transfer *transfer.Transfer
}
// Zones maps zone names to a *Zone.
@@ -77,11 +79,6 @@ func (f File) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i
return dns.RcodeServerFailure, nil
}
- if state.QType() == dns.TypeAXFR || state.QType() == dns.TypeIXFR {
- xfr := Xfr{z}
- return xfr.ServeDNS(ctx, w, r)
- }
-
answer, ns, extra, result := z.Lookup(ctx, state, qname)
m := new(dns.Msg)