Have you taken him to the vet? To me, it sounds like he could have a bladder problem, also did you move recently? Sometimes dogs like to mark their territory,when you move to someplace new!