diff --git a/plugin/transfer/transfer.go b/plugin/transfer/transfer.go index af27cc717..3558f2e0f 100644 --- a/plugin/transfer/transfer.go +++ b/plugin/transfer/transfer.go @@ -129,22 +129,6 @@ func (t *Transfer) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Ms } } - // if we are here and we only hold 1 soa (len(rrs) == 1) and soa != nil, and IXFR fallback should - // be performed. We haven't send anything on ch yet, so that can be closed (and waited for), and we only - // need to return the SOA back to the client and return. - if len(rrs) == 1 && soa != nil { // soa should never be nil... - close(ch) - wg.Wait() - - m := new(dns.Msg) - m.SetReply(r) - m.Answer = []dns.RR{soa} - w.WriteMsg(m) - - log.Infof("Outgoing incremental transfer for up to date zone %q to %s for %d SOA serial", state.QName(), state.IP(), serial) - return 0, nil - } - // if we are here and we only hold 1 soa (len(rrs) == 1) and soa != nil, and IXFR fallback should // be performed. We haven't send anything on ch yet, so that can be closed (and waited for), and we only // need to return the SOA back to the client and return.