Check that hostname can be resolved before stopping IaaS poll

This is a workaround for OpenStack, which returns an internal hostname as the public IP for some time during the launch, even though the instance is running. If this hostname cannot be resolved, we continue polling IaaS until we get a resolvable hostname.