Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null output on IPv6 address #4

Open
stoneycode opened this issue Nov 13, 2018 · 0 comments
Open

Null output on IPv6 address #4

stoneycode opened this issue Nov 13, 2018 · 0 comments

Comments

@stoneycode
Copy link

No output when the setup only has an IPv6 address. The resolver returns a non-existing domain when invoked. Workaround is to include both queries. On IPv4 locations, the command will output the address for v4 and a timeout for v6
case "$1" in ""|dns) dig +short myip.opendns.com @resolver1.opendns.com ; dig +short -6 myip.opendns.com aaaa @resolver1.opendns.com ;;

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

No branches or pull requests

1 participant