I have a host that has a static IPv6 address but its IPv4 address is dynamic. I'd like to update the IPv4 when it changes, but cloudflare-ddns-client obtains the IPv6 and tries to set it for the A record which of course fails:
10:37PM INF Found public IP '2600:1900:...
...
Error: failed to update DNS record '<redacted>' to IP address '2600:1900:...': HTTP status 400: Content for A record must be a valid IPv4 address. (9005)
The DNS and URL queries need to force an IPv4 connection, the equivalent of:
dig -4 myip.opendns.com A @resolver1.opendns.com