Hi! Dandruff is a common occurence. It has a tendency to recur. You have to take continuous efforts to keep it at bay.
1. Shampoo hair as frequently as required. Keep the hair clean. 2. Avoid hair styling products till dandruff goes off. 3. Use anti dandruff shampoo which contains ketoconazole once or twice a week. 4.Oil clean washed hair. 5. Do not try to scrape or comb away the flakes. Be gentle with your hair and scalp. 6. Wash your combs and brushes regularly. Do not share them. 7. Refer"Understanding Dandruff" by Dr. Jolly Shah Kapadia - https://www.practo.com/healthfeed/understanding-dandruff-8830/post
See a Dermatologist personally for products which suit your needs and hair scalp type.