How to train my new dog to only go outside?
So I found a stray a few weeks back, he's had owners at some point in the past, is about 9 yrs old, and has some basic training. I set him on a consistent routine for when he eats and takes potty breaks, this has been working well until the past week. Now he has started pooping in the house. I've taken him on walks (free reign/leashed) for 30-1 hr sometimes and he'll pee but not poop. Then as soon as he's left alone in the house, ie. When I go to work he'll poop. I had started with praise and treats everytime he went outside so I don't understand why this is a problem now. I have started back with keeping him locked up when no one's home but this hasn't stopped him from going inside, or prompted him to go outside when I take him. This has been very frustrating, any advice please?
I would seek to build an indoor dog bathroom so the dog can poo/pee whenever needed just like all animals should have, freedom to relieve bowels & bladder. I would never use a cage (people use the euphemism "crate" or kennel) unless the cage is a room or at least 10' x 10' and with window to outside