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

IPv6 address detection fallback not working correctly #95

Open apschultz opened 2 years ago

apschultz commented 2 years ago

The +short method of dig may return outputs in the case of an error. For example, if no IPv6 DNS server is available:

/ # dig +short @2606:4700:4700::1111 -6 ch txt whoami.cloudflare
;; connection timed out; no servers could be reached

It would be better to check the exit code and that the contents conforms to an IPv6 address string.

apschultz commented 2 years ago

It appears this is the same as https://github.com/oznu/docker-cloudflare-ddns/issues/92 just for IPv6

premikkoci commented 2 years ago

having the same problem