The best way to use coconut oil for dandruff is to use it in place of your shampoo and conditioner. Apply it directly to the scalp and comb throughout the rest of your hair for extra benefits. Leave it on for a few minutes to make sure the oil has a chance to penetrate your hair and skin, then rinse it off thoroughly.