Dog can get dermatitis in their inguinal area, across the prepuce, and on the scrotum. This can be due to allergies, contact dermatitis, local irritation, hot spot, and infection. Dogs can also get a sexually transmitted tumor called a transvenereal tumor--this is usually located on the prepuce/penile area. I would have your dog examined by a veterinarian for appropriate diagnostics and treatment.