Why do you need to resolve the IP address? Using ssh with the fqdn should work.