Skip to content

Host with both IPv6 and IPv4 tries to use IPv6 to update A record #15

@timkgh

Description

@timkgh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions