OVH: there is a bug on SPF records displayed as TXT on zone export
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
nemunaire 2021-01-21 15:47:59 +01:00
parent c458ad7ab8
commit fc47dea6ad

View File

@ -233,6 +233,13 @@ func (s *OVHAPI) DeleteRR(dn *happydns.Domain, rr dns.RR) (err error) {
}
}
// There is a bug in OVH API : SPF fields are considered as TXT
// If we are here and record is TXT, search it in SPF records
if _, ok := rr.(*dns.TXT); ok {
rr.Header().Rrtype = dns.TypeSPF
s.DeleteRR(dn, rr)
}
return
}