Please don't punish pets for doing natural acts. They don't understand. Simply take your dog outside and wait until he does whatever and then take him inside.
Repeat morning and night. The dog is trying to tell you something. If they do urinate or defecate indoors, clean it up right away and spray it with a deterrent spray or use a mild vinegar to clean it with which will leave a smell the dog does not like.
Maybe the dog wanted attention. Bring him to walk every morning and everynight so that he'll remember that eliminating was never done at home...
He could be ill. He's also stressed out, he's moved, his owner is dying. Dogs mourn just like people.
He needs to be retrained as if he's a puppy. He's confused, frightened and depressed. Get him a vet visit, make sure he doesn't have a UTI or some other problem.
Then clean the house with a dog cleaner. Not regular cleaner, it'll get rid of the pee smell. Even if you can't smell it, he can.
Then retrain him like with a puppy. He's obviously either physically or emotionally upset. There also may be something in the yard that scares him.My sister's dog won't pee outside if there are deer.
He's afraid of them. Try taking him out on leash out the front door and walking him. Most male dogs will pee on trees.
He / She is maybe ill perhaps a trip to the vet may clear up your problem.
Confine your dog in the doghouse for the time being until all things get back to normal for the animal to train to do its thing outside. Because animal waste causes more serious harm or disease if not taken properly.
If he came from the pound then maybe he is scared that the dog catcher might hurt him or take him back to the pound. \Or maybe there is somthing outside that he doesn't like.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.