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

Improper DIG Error Handling For IPv4 #92

Open
Perplex opened this issue Jan 14, 2022 · 0 comments
Open

Improper DIG Error Handling For IPv4 #92

Perplex opened this issue Jan 14, 2022 · 0 comments

Comments

@Perplex
Copy link

Perplex commented Jan 14, 2022

Running the following DIG commands from getPublicIpAddress() results in connection time out errors:

$dig +short @1.1.1.1 ch txt whoami.cloudflare +time=3
;; connection timed out; no servers could be reached

$dig +short myip.opendns.com @resolver1.opendns.com +time=3
;; connection timed out; no servers could be reached

Which then translates into update errors:

ERROR: Failed to update CloudFlare DNS record <example>.com from <OLD> to ;; connection timed out; no servers could be reached

The timeouts aren't related to this repo but the error handling does appear to be faulty. After failing the two DIG commands it should fall back to curl -sf4 https://ipinfo.io | jq -r '.ip' (which does work still), but never does.

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