oznu / docker-cloudflare-ddns

A small amd64/ARM/ARM64 Docker image that allows you to use CloudFlare as a DDNS / DynDNS Provider.
https://hub.docker.com/r/oznu/cloudflare-ddns/
GNU General Public License v3.0
1.07k stars 213 forks source link

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

Open DerPW opened 2 years ago

DerPW commented 2 years ago

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
damianon commented 2 years ago

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)