Open gui-li opened 2 years ago
I pass curl -sf4 https://ipinfo.io | jq -r '.ip'
to parametrer CUSTOM_LOOKUP_CMD
, then it works as expected. I wonder why it can't get the public IP address at https://github.com/oznu/docker-cloudflare-ddns/blob/a96b637d72f025a4d50dbcd4e0321d0300339858/root/app/cloudflare.sh#L53
I try the command
dig +short myip.opendns.com @resolver1.opendns.com | tr -d '"'
in docker, it returns nothing. Theresolver1.opendns.com
domain is poisoned in China. Could you please provide a more robust and reliable way in getting IP? This link provides a multiple source in getting ip.