Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

ERROR: Failed to update CloudFlare DNS <domain> from X.X.X.X to ;; connection timed out; no servers could be reached #100

Open
gui-li opened this issue Jun 4, 2022 · 2 comments

Comments

@gui-li
Copy link

gui-li commented Jun 4, 2022

I try the command dig +short myip.opendns.com @resolver1.opendns.com | tr -d '"' in docker, it returns nothing. The resolver1.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.

@gui-li
Copy link
Author

gui-li commented Jun 6, 2022

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

IP_ADDRESS=$(curl -sf4 https://ipinfo.io | jq -r '.ip')

@gui-li
Copy link
Author

gui-li commented Jun 6, 2022

The IP_ADDRESS at this line will return ;; connection timed out; no servers could be reached, and it's not equal to "", so it will not execute line 53.
PS: CLOUD_FLARE_IP is ;; connection timed out; no servers could be reached

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant