Support instances without a public DNS name

VPC instances by default don’t have public DNS. This fixes that.