ddns-scripts: Retry domain resolving with each iteration
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Fri, 6 Apr 2012 09:35:52 +0000 (09:35 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Fri, 6 Apr 2012 09:35:52 +0000 (09:35 +0000)
SVN-Revision: 31212

net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh

index d1f8460bfcccda1fcce9dfee7c162d00f3b3db98..0c5718b04655ffd37e568b462d36ada6c0d15f96 100755 (executable)
@@ -272,14 +272,11 @@ verbose_echo "time_since_update = $human_time_since_update hours"
 
 
 
-
-registered_ip=$(echo $(nslookup "$domain" 2>/dev/null) |  grep -o "Name:.*" | grep -o "$ip_regex")
-
-
 #do update and then loop endlessly, checking ip every check_interval and forcing an updating once every force_interval
 
 while [ true ]
 do
+       registered_ip=$(echo $(nslookup "$domain" 2>/dev/null) |  grep -o "Name:.*" | grep -o "$ip_regex")
        current_ip=$(get_current_ip)