Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Switch eth0.me to using myip.opendns.com (fixes #61) #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cormacrelf
Copy link

@cormacrelf cormacrelf commented Nov 1, 2016

Pretty sure dig works on most if not all versions of macOS.

Fixes #61.

@t33chong
Copy link

t33chong commented Nov 1, 2016

I was experiencing #61 as well, and making this change manually has fixed the issue for me. 👍

Copy link

@derdennis derdennis left a 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.

Copy link

@AustinShalit AustinShalit left a 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.

@errinlarsen
Copy link

I was using the following locally and it was working great for me:

dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2 }'

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.

@jedisct1
Copy link

jedisct1 commented Jan 1, 2017

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.

Copy link

@jedisct1 jedisct1 left a 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?

@cormacrelf
Copy link
Author

I've been afk for a few weeks, will test the Google solution and amend the PR on Monday if all goes well.

@tduzan-te
Copy link
Contributor

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.

@salimos
Copy link

salimos commented Sep 25, 2018

i'm using curl -sS ifconfig.me for the IP Adress

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

Successfully merging this pull request may close these issues.

None yet

9 participants