thanks for writing to us.
As you have taken bactrim previously also without any side effects, it is very unlikely that these lesions are due bactrim.
The swollen lymphnodes
are basicalky due to involvemrnt of breast area, underarms, ears and eyes etc. So once the rashes resolve the lreactive lymphadenopathy
The description of rashes and distribution of rash point more towards seborrheic dermatitis
. It requires apllication of topical steroids. If severe oral steroids might be required too.
I would advise that you meet a dermatologist
nearby to confirm the diagnosis and start appropriate Treatment.
Hope that helped.