diff options
Diffstat (limited to 'plugin/auto/auto.go')
-rw-r--r-- | plugin/auto/auto.go | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugin/auto/auto.go b/plugin/auto/auto.go index 74a48a205..4316d8d2f 100644 --- a/plugin/auto/auto.go +++ b/plugin/auto/auto.go @@ -10,6 +10,7 @@ import ( "github.com/coredns/coredns/plugin/file" "github.com/coredns/coredns/plugin/metrics" "github.com/coredns/coredns/plugin/pkg/upstream" + "github.com/coredns/coredns/plugin/transfer" "github.com/coredns/coredns/request" "github.com/miekg/dns" @@ -21,7 +22,8 @@ type ( Next plugin.Handler *Zones - metrics *metrics.Metrics + metrics *metrics.Metrics + transfer *transfer.Transfer loader } @@ -30,8 +32,6 @@ type ( template string re *regexp.Regexp - // In the future this should be something like ZoneMeta that contains all this stuff. - transferTo []string ReloadInterval time.Duration upstream *upstream.Upstream // Upstream for looking up names during the resolution process. } @@ -59,11 +59,6 @@ func (a Auto) 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 := file.Xfr{Zone: z} - return xfr.ServeDNS(ctx, w, r) - } - answer, ns, extra, result := z.Lookup(ctx, state, qname) m := new(dns.Msg) |