ddns-scripts: add retry loop to verify dns and proxy

Changed the verify of DNS server and proxy at script start to retry the
verify if there are connection problems during verify
plus some minor changes.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Merge pull request #420 from chris5560/master

ddns-scripts: add retry loop to verify dns and proxy