![]() |
|
Related to DDNS: ip not updated correctly - Printable Version +- Technology and Beyond (TaB) (http://tab.d-thinker.org) +-- Forum: Data Thinker (/forumdisplay.php?fid=896) +--- Forum: Resources (/forumdisplay.php?fid=211) +---- Forum: Completed work (/forumdisplay.php?fid=275) +---- Thread: Related to DDNS: ip not updated correctly (/showthread.php?tid=4100) |
Related to DDNS: ip not updated correctly - Clara - 08-24-2015 06:36 PM It seems that "./update_dns.sh" will add the new record correctly but do not remove the old one: After changing "curl ifconfig.me" (this gave me an error) to "curl http://www.pkill.info/whoami/myip/" (as suggested in Eric's reply), I followed Amoner's instruction and `dig` worked correctly: Code: dig wretar.dthink.net @115.231.209.243But after I changed $ip in "update_dns.sh" and ran it again, `dig` gave me the following result: Code: ;; ANSWER SECTION:Maybe this is because that "update_dns.sh" only adds the new ip but does not remove the old one: Code: echo "update add $host 600 A $ip" >> dns_fileRE: Related to DDNS: ip not updated correctly - amoners - 08-25-2015 12:24 AM (08-24-2015 06:36 PM)Clara Wrote: It seems that "./update_dns.sh" will add the new record correctly but do not remove the old one: Yes, It should delete exist record before update new one. Fixed in commit ba6d54cb1674cfed31baf676b314a9474b5fa57d, please try again. FYI: The usage is same as before, you need to change `curl` to get IP. It may takes a few mins to effective. RE: Related to DDNS: ip not updated correctly - Clara - 08-25-2015 09:47 AM (08-25-2015 12:24 AM)amoners Wrote: Yes, It should delete exist record before update new one. It works smoothly now. Thank you! RE: Related to DDNS: ip not updated correctly - amoners - 08-25-2015 10:54 AM (08-25-2015 09:47 AM)Clara Wrote:(08-25-2015 12:24 AM)amoners Wrote: Yes, It should delete exist record before update new one. Ok, Moved to 'Complete work'. |