AXFRDDNS: fix error message (fix
@@ -194,7 +194,7 @@ func (c *AxfrDdns) FetchZoneRecords(domain string) ([]dns.RR, error) {
if err == "dns: bad xfr rcode: 9" {
err = "NOT AUTH (9)"
}
- return nil, fmt.Errorf("[Error] AXFRDDNS: nameserver refused to transfer the zone: %s", msg)
+ return nil, fmt.Errorf("[Error] AXFRDDNS: nameserver refused to transfer the zone: %s", err)
}
rawRecords = append(rawRecords, msg.RR...)
}
