|
Related to DDNS: ip not updated correctly
|
|
08-24-2015, 06:36 PM
Post: #1
|
|||
|
|||
|
Related to DDNS: ip not updated correctly
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_file |
|||
|
08-25-2015, 12:24 AM
Post: #2
|
|||
|
|||
RE: Related to DDNS: ip not updated correctly
(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. |
|||
|
08-25-2015, 09:47 AM
Post: #3
|
|||
|
|||
RE: Related to DDNS: ip not updated correctly
(08-25-2015 12:24 AM)amoners Wrote: Yes, It should delete exist record before update new one. It works smoothly now. Thank you! |
|||
|
08-25-2015, 10:54 AM
Post: #4
|
|||
|
|||
RE: Related to DDNS: ip not updated correctly
(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'. |
|||
|
« Next Oldest | Next Newest »
|
- View a Printable Version
- Send this Thread to a Friend
- Subscribe to this thread
- Show the subscribers of this thread:
- Add subscribers to this thread:

Search
Member List
Calendar
Help
