ddns-scripts: fix issue (#337) current/registered ip never match

new extraction of IP inside function get_registered_ip for host and nslookup

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>