[packages] ddns-scripts: Retry domain resolving with each iteration
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 6 Apr 2012 09:35:52 +0000 (09:35 +0000)
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 6 Apr 2012 09:35:52 +0000 (09:35 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31212 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index d1f8460..0c5718b 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)