OVH: there is a bug on SPF records displayed as TXT on zone export
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c458ad7ab8
commit
fc47dea6ad
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user