get target hostname from an environmental variable