House Training Tips
This is simple, but time consuming as you need to be diligent and consistent. If you are, then your dog will quickly start to catch on. If you're not, he'll be confused and you'll struggle with this for a long time. Many dogs, more than you'd think, go their entire lives without being completely house trained because one or two details in the learning process are often missed.
He must be watched at all times. When he can't be watched, he needs to be crated, although he likely can't go much more than four hours without being let out to go to the bathroom, maybe not even that long, for young pups. If you're training an adult dog for the first time, you have the luxury of working with a larger bladder! Every time he pees in the house without being caught in the act, he is immediately rewarded for doing it, because he feels physical relief, so watching him constantly is essential. Also if you let him out and he walks all over sniffing everything, then has to go back inside once he pees, peeing outside becomes a punishment of sorts, as he has the freedom to walk all over sniffing and exploring until he pees, then he has to go inside, ending the fun, after he pees.
Take him outside on a regular schedule, maybe once every hour to start, maybe every 3-4 hours overnight. As he matures he'll be able to hold it for longer periods of time. When outside, go to one spot in the yard, and quietly wait. Give him 2-3 minutes to go. If he doesn't, go back inside, but watch him like a hawk, or crate him. In another 10-15 minutes, try again, same spot, quietly waiting, not walking around.
Once he pees outside, praise him, and then walk around or play with him as a reward. This only happens after he pees. This will teach him to pee immediately when he gets outside.
If he pees in the house without being seen, clean it up, nothing else. Do not punish him for doing it, this will only teach him to avoid you when he has to pee, not to stop peeing in the house.
If he attempts to go to the bathroom in the house, run to him as fast as you can, scoop him up, and run outside with him. The idea is to startle him and make it an unpleasant experience. Don't spend time scolding him etc, from the time you see him starting to pee, to the time you scoop him up should be a few seconds, and from the time you scoop him up to the time he's in grass, should be just another few. It needs to happen that fast. Once outside, stand in one spot with him until he pees. It may take a minute for him to calm down from being startled. Don't walk around, just stand quietly and wait. When he starts to pee, calmly praise him, and when he's done, play with him outside for a few minutes, or even just walk around the yard with him.