diff --git a/pkg/scanner/axfr.go b/pkg/scanner/axfr.go index 5175478..c5bef3d 100644 --- a/pkg/scanner/axfr.go +++ b/pkg/scanner/axfr.go @@ -21,7 +21,7 @@ func DumpAXFR(target string, dnsServer string) ([]define.Record, error) { for rr := range ch { if rr.Error != nil { log.Debugf("Error: %v", rr.Error) - continue + return records, rr.Error } for _, r := range rr.RR { records = append(records, define.Record{