Red painless spots in penis head and palms

5 days ago these red spots appeared on my penis, 3 days ago in my hands. They are painless, they do not itch.

I would get checked out at a clinic for sexually transmitted diseases such as syphilis as that can cause a rash on genitalia and hands.