Handle Dynu 505 dynamic A/AAAA validation fallback

This commit is contained in:
beatz174-bit
2026-04-29 11:42:19 +10:00
parent b5f137b25b
commit fed8ed31ca
2 changed files with 58 additions and 1 deletions
+4 -1
View File
@@ -539,7 +539,10 @@ func normalizeRecordContentForState(recordType string, content string, dynamicIn
func isUnsupportedEmptyContentError(err error) bool {
var apiErr *dynuclient.APIError
if !errors.As(err, &apiErr) || apiErr.StatusCode != 400 {
if !errors.As(err, &apiErr) {
return false
}
if apiErr.StatusCode != 400 && apiErr.StatusCode != 505 {
return false
}
normalizedType := strings.ToLower(strings.TrimSpace(apiErr.Type))