Went to the doctor, who gave me penicillin, after which a lot of white/yellow discharge
was released, and things temporarily returned to normal. However after a few months, pain restarted and general wetness underneath the foreskin. I went to another doctor, who gave me a topical ointment, and antibiotics. After this, he tested for infections (such as chlamydia), and the test came out negative.