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

IPv6 address detection fallback not working correctly #95

Open
apschultz opened this issue Feb 25, 2022 · 2 comments
Open

IPv6 address detection fallback not working correctly #95

apschultz opened this issue Feb 25, 2022 · 2 comments

Comments

@apschultz
Copy link

apschultz commented Feb 25, 2022

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
Copy link
Author

It appears this is the same as #92 just for IPv6

@premikkoci
Copy link

having the same problem

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

2 participants