From 467e5fce1b621a0f886575d6b68be54bae924f75 Mon Sep 17 00:00:00 2001 From: Pranay Kanwar Date: Thu, 11 Jul 2013 12:12:32 +0530 Subject: [PATCH] Do not fail AXFR if first anwser is just SOA --- xfr.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xfr.go b/xfr.go index 022abdf5..7655c1b1 100644 --- a/xfr.go +++ b/xfr.go @@ -69,6 +69,12 @@ func (w *reply) axfrIn(q *Msg, c chan *Envelope) { return } first = !first + // only one answer that is SOA, receive more + if (len(in.Answer) == 1) { + w.tsigTimersOnly = true + c <- &Envelope{in.Answer, nil} + continue + } } if !first {