Dermatologists both diagnose and treat STDs. Bacterial STDs are treated with antibiotics and while viral STDs can't be cured, the symptoms can be managed with medication. Again, I highly advise consulting a board-certified dermatologist if you suspect you have an STD.