oznu/docker-cloudflare-ddns

Updating AAAA record: "connection timed out; no servers could be reached"

DerPW opened this issue · 1 comments

DerPW commented

It was working for a while and then i checked a few days later and saw this error in the log when trying to change AAAA record:

Updating CloudFlare DNS record mydomain.com from 1:1:1:1:1:1:1:1 to ;; connection timed out; no servers could be reached...

ERROR: Failed to update CloudFlare DNS record mydomain.com from 1:1:1:1:1:1:1:1 to ;; connection timed out; no servers could be reached

I am using portainer und this is my config:

version: '2'
services:
  cloudflare-ddns:
    image: oznu/cloudflare-ddns:latest
    restart: always
    environment:
      - API_KEY=abcdefghijkmnop
      - ZONE=mydomain.com
      - PROXIED=false
      - RRTYPE=AAAA

The issue is, that the docker containers don't have an IPv6. So either you'd need to set --network=host or enable IPv6 for docker containers (although I'm not sure which ip would be set with the second option)