I've said on quite a few other forems about this as well. But my dog did this too. He was house trained and then at one point just started doing his business inside. And I know he did not have to go outside because he would do it like 2 minutes after he came in. He'd also do it right in front of me. I even tried putting him outside to see if he had to go but he still continued going to the bathroom inside. I think he was trying to get attention. I tried telling him 'no' but he would continue peeing. When dogs really want attention, they don't care even if it's negative attention. So what I did to solve this situation was, I put him in a corner and made him stay there for a few minutes or I'd put him in the kitchen with the gate up while everyone ignored him. So as soon as he'd go I'd bring him straight to the corner or kitchen without saying a word. He eventually got the message that he wasn't getting attention for this behaviour. He usually sleeps in my room at night so I would also leave him in the kitchen instead of bringing him in my room.
Hope this helps!*Sorry for the paragraph answer*
Bookmarks