Based on your description the skin condition, it appears that you have Seborrheic dermatitis. Sometimes they co-exist with dandruff and can be determined with more precision during a consultation. A photograph will add in obtaining better recommendations. Kindly consult a dermatologist for exact diagnosis and treatment plan. It is also important to prevent their relapse once you have got it cured.
Next Steps
Nizral or Conaderm are good shampoos to be applied on affected areas of skin.
Health Tips
Avoid Self Medications.