Question: how to train your male dog not to pee in the house?
Answer: Spay or neuter your dog as soon as possible. The longer a dog goes before neutering, the more difficult it will be to train them not to mark in the house. Spaying or neutering your dog should reduce urine-marking and may stop it altogether.