It's not so much the dog doesn't listen, more that he doesn't understand what you want him to do. Go back to basics and don't punish him when he toilets indoors. Double your vigilance and take every opportunity to put him outside to toilet. The crucial thing is to be present when he does toilet in the correct place, so that you can reward him. This makes him keener to repeat the performance to get another treat. Conversely, if you have been telling him off for indoor accidents he may already feel inhibited about going to the toilet in your presence, including when he goes outdoors. This is one reason why it's important not to punish for inappropriate toileting.
There are a lot of different ways to train your dog. You may choose to sign up for a dog training class, hire a professional dog trainer for private lessons, or even send your dog to board with a trainer. However, plenty of people successfully train their dogs on their own. It's a great way to save money on training costs, and a wonderful way to bond with your dog.
While indoor elimination solutions like potty pads and litter boxes have their place, using them can actually slow the process down if you plan to eventually have your dog eliminate exclusively outside. Teaching your puppy to potty inside sometimes and outside others can be confusing because you will eventually have to teach your dog that at some point the indoor option is no longer allowed. Potty pads work best for people who can’t get their puppy outside quickly, like those who live in high-rise apartments or have limited mobility.
Submissive urination is a normal way for your puppy to demonstrate submissive behavior. Even a dog that is otherwise housetrained may leave dribbles and puddles of urine at your feet when greeting you. Excitement urination with a puppy is usually caused by lack of bladder control. The puppy is not aware that he is urinating; he's just excited and any punishment will only confuse him.
Just because your new dog is old enough that he should know where to potty doesn’t mean that he actually does. An adult dog has the necessary muscle control to hold it for longer periods of time, but if no one ever taught him the potty training rules then he’s the equivalent of a brand new puppy. Age should not be equated with housetraining prowess, so it’s a good idea to treat any dog new to your home as if he’s still learning the potty training ropes.
You may also notice common behavior problems in your dog such as jumping up, barking, or even aggression. The best way to correct any misbehavior is to interrupt it. Shift your dog's attention to something positive. Try running through cues that your dog has mastered followed by rewards. Keep your demeanor cool and confident, and be clear about what you mean.
A training class is not there to train your dog. Its purpose is to teach you to train your dog so you will need to be committed to train your dog for short sessions (5 minutes) several times a day rather than just simply turn up for classes! This little bit of training everyday will be repaid with a lifetime of living with a well behaved dog. You will also learn to avoid problems before they begin as well as receive help to overcome any that you already have with your dog.
The process is the exactly same for older dogs as it is for puppies; prevent accidents from happening by using baby gates and a crate if possible, create a predictable schedule, learn to recognize your dog’s potty signals, accompany your dog outside and immediately reward for all outdoor elimination, properly clean any accidents and supervise your dog until you’re sure that he understands the rules.