dealing with the scenario for hypervisor that hostname may or may not contain domain name