Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.243
...
;; ANSWER SECTION:
wretar.dthink.net.    600    IN    A    119.63.98.21

But after I changed $ip in "update_dns.sh" and ran it again, `dig` gave me the following result:
Code:
;; ANSWER SECTION:
wretar.dthink.net.    600    IN    A    119.63.98.21
wretar.dthink.net.    600    IN    A    143.89.135.171

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
Quote this message in a reply
Post Reply 


Messages In This Thread
Related to DDNS: ip not updated correctly - Clara - 08-24-2015 06:36 PM
RE: Related to DDNS: ip not updated correctly - amoners - 08-25-2015, 12:24 AM
RE: Related to DDNS: ip not updated correctly - Clara - 08-25-2015, 09:47 AM
RE: Related to DDNS: ip not updated correctly - amoners - 08-25-2015, 10:54 AM

Forum Jump: