Git Product home page Git Product logo

ddns-route53's People

Contributors

andrewwyh avatar mcfedr avatar mthssdrbrg avatar paulbovbel avatar thenickdude avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ddns-route53's Issues

great tool! opendns resolver doesn't work though for me....

So I'm totally unsure why, but the following does not work for me (times out):

dig +short myip.opendns.com @resolver1.opendns.com

It does work fine if I don't specify @resolver1.opendns.com.

For my home purposes I'm just going to leave that part off.

Script behaves differently when ran from cron job vs. shell

If I run the script manually, I get the following output:
Current IP == a.b.c.d

But if running it from cron (piping output to a log file), I get the following:
IP changed from '' to 'a.b.c.d', updating entry
where a.b.c.d is my actual IP.

I added a couple of echo statements in the script inside the main() function and looks like when it's ran from cron, the old_ip variable is blank.

Any thoughts?

Unable to determine current IP address

Seem like the 'opendns' method for fetching external IP address is broken.

I have a proven the following remedy to be working:
Modify ddns-route53, line 73:
ip="$(curl ifconfig.co)" ###ip="$(dig +short myip.opendns.com @resolver1.opendns.com)"

Readme.md should be update to require 'curl' as opposed to 'dig'

Thanks for the great work!

Some region disturb checking ip

script did not work properly from a few days ago.
so, I did check script, and result is follow.

jehos@pi-router:~$ MYIP=$(dig +short myip.opendns.com @resolver1.opendns.com); date; echo $MYIP; geoiplookup $MYIP
Sat Aug 18 00:01:52 CST 2018
74.117.178.155
GeoIP Country Edition: VG, Virgin Islands, British
GeoIP City Edition, Rev 1: VG, 00, N/A, Road Town, N/A, 18.416700, -64.616699, 0, 0
GeoIP ASNum Edition: AS40824 WZ Communications Inc.

jehos@pi-router:~$ MYIP=$(dig +short myip.opendns.com @resolver1.opendns.com); date; echo $MYIP; geoiplookup $MYIP
Sat Aug 18 00:01:53 CST 2018
31.13.87.3
GeoIP Country Edition: IE, Ireland
GeoIP City Edition, Rev 1: IE, N/A, N/A, N/A, N/A, 53.347198, -6.243900, 0, 0
GeoIP ASNum Edition: AS32934 Facebook, Inc.

jehos@pi-router:~$ MYIP=$(dig +short myip.opendns.com @resolver1.opendns.com); date; echo $MYIP; geoiplookup $MYIP
Sat Aug 18 00:01:54 CST 2018
108.160.165.8
GeoIP Country Edition: US, United States
GeoIP City Edition, Rev 1: US, CA, California, San Francisco, 94107, 37.769699, -122.393303, 807, 415
GeoIP ASNum Edition: AS19679 Dropbox, Inc.

jehos@pi-router:~$ MYIP=$(dig +short myip.opendns.com @resolver1.opendns.com); date; echo $MYIP; geoiplookup $MYIP
Sat Aug 18 00:01:55 CST 2018
108.160.170.52
GeoIP Country Edition: US, United States
GeoIP City Edition, Rev 1: US, VA, Virginia, Ashburn, 20149, 39.048100, -77.472801, 511, 703
GeoIP ASNum Edition: AS19679 Dropbox, Inc.

jehos@pi-router:~$ MYIP=$(dig +short myip.opendns.com @resolver1.opendns.com); date; echo $MYIP; geoiplookup $MYIP
Sat Aug 18 00:01:56 CST 2018
128.242.240.116
GeoIP Country Edition: US, United States
GeoIP City Edition, Rev 1: US, CO, Colorado, Englewood, 80111, 39.623699, -104.873802, 751, 303
GeoIP ASNum Edition: AS2914 NTT America, Inc.

It worked well on servers installed in other countries, but it did not work in certain countries.
(see execute time, and result ip)
some country seems to be interfering with IP verification.

this is workaround

diff --git a/ddns-route53 b/ddns-route53
index 3c4b5bf..0ccefea 100755
--- a/ddns-route53
+++ b/ddns-route53
@@ -70,7 +70,8 @@ function init-args() {
     shift
   done
   if [[ -z "$ip" ]]; then
-    ip="$(dig +short myip.opendns.com @resolver1.opendns.com)"
+    #ip="$(dig +short myip.opendns.com @resolver1.opendns.com)"
+    ip="$(curl -s whatismyip.akamai.com)"
   fi
   old_ip="$(fetch-current-ip 2> /dev/null)"
   return 0

but it just workaround.
The script should have some cross validation function..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.