some systems have neither host nor nslookup or dig. Fall back to hostname command