Thanks for writing to us.
From your symptoms it seems that you have developed an infection around your foreskin. Most of the times it is a fungal infection
with a superadded bacterial infection.
You can apply clotrimazole
cream locally for symmptomatic relief. If the symptoms are persistent then consulting a dermnatologist will be helpful.
I hope this information has been both informative and helpful for you.
Dr. Rakhi Tayal