You might be having something known as acute post auricular lymphadenitis which commonly occurs secondary to some skin infections around the ear and over scalp. Even dandruff can cause this condition.
Next Steps
Consult nearby ENT specialist for confirmation of diagnosis and appropriate treatment
Health Tips
It's highly unlikely to be anything serious