Welcome to health care magic forum
Thank you for your query
I understand your query regarding your skin problem
It look like you have infection over scalp.
lymph node swelling show infection in drainage
you need to take antibiotic medicine.
For pain you can take analgesic
For itching anti histaminic like cetrizine
do not scratch or rub over scalp.
it is better to consult dermatologist
for proper treatment.
it may be related to your current skin disease.
I hope I answered your query.