Check if nasname is a valid ipaddress before importing