Welcome To HealthcareMagic forum,
You have two things here,one is andriogenetic alopecia
and other is dandruff
Since you have hair line recessions from front ,let me tell you that the hair which you have already lost from the front (where baldness
has occurred ),you cannot regain it by any form of medicines .The only answer is hair transplantation
But to prevent further hair loss ,you can take medicines.I prefer combination of medicines like minoxidil
,fenestride,biotin,essential fatty acids,zinc,copper etc. They need to be taken for at-least 6 -8 months for good result.By these medicines one can only delay baldness,you cannot treat it. If you take these medicines for say 1 year then probably you can prevent baldness by 4-5 years (vary from patient to patient).
Dandruff is not a disease .So you should try keep it under control using various shampoos .If sever then there are tablets or lotions to control it.Biotin is a vitamin which helps build up keratin present in hair shaft.
So,consult a skin specialist who can help you with a good treatment.