Switch eth0.me to using myip.opendns.com (fixes #61) #62
base: master
Are you sure you want to change the base?
Conversation
I was experiencing #61 as well, and making this change manually has fixed the issue for me. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the issue for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this PR is not working in China because of the Great Firewall (see comments on #61).
I think we should still go ahead with this PR unless a user in China has another solution for discovering the public IP address of the computer.
@obihann Just tagging you to bring your attention to this PR.
I was using the following locally and it was working great for me:
I figure Google is the least likely to go away, and it might help the "Great Firewall" problem, too, though I'm not sure how to test that. Google does like to move stuff around sometimes and change names from time to time, though. |
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2 }' also works fine for me, and has been working for a long time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2 }'
that is less likely to be blocked?
I've been afk for a few weeks, will test the Google solution and amend the PR on Monday if all goes well. |
What's the status on this? I apologize, IIRC I'm the one that originally submitted the change to use eth0.me since it was much faster than the previous method. DNS is superior if it can be used, but as you've noted many of the larger (and thus faster) DNS networks are blocked in some countries. If nobody else has found a solution, I will reach out to some friends of mine in China to have them test some ideas I have and I will submit another PR that works globally to fix this. |
i'm using |
Pretty sure
dig
works on most if not all versions of macOS.Fixes #61.