Unfortunately, every dog barks at some point -- even the most well-behaved ones. Some dogs bark more than others due to personality and training, and others do it seldomly. Just like people, dogs have needs. You may not even want your dog to stop barking entirely, however, as you may want them to ward off intruders. In that case, these tips will help reduce barking as well.
1. Identify why your dog is barking. It could be that your dog always barks when somebody knocks at the door, and he thinks he is alerting you to danger. Some dogs bark when they are trying to play or are afraid of something. Of course, sometimes barking just appears to be a fun past-time. In reality, it is most often based in insecurity.
2.Don't yell at your dog when he barks. He might think that you are joining in, or perhaps he thinks that you are scared as well. The key is to be confident and calm when your dog starts making a ruckus.
3. Build confidence in your dog. Your pet thinks he needs to communicate with you by barking. Show him that this is not the case -- you are the one in charge. Your dog needs to know that he does not need to do anything to help you. You can practice this by holding him on a leash as you answer the door, showing him that this is okay. You can do this by speaking calmly and soothingly to your pet.
4. Teach your dog to do something besides bark. Many pet owners find success in teaching their dog to bring an item over when the doorbell rings rather than to bark. You can point to a favorite toy or other item and ask the dog to bring it to you.
5. Attend Dog Training Classes. Many times, professional dog trainers can provide some insight into your dog's behaviors. You might even be surprised at some of the things you learn about your dog when you see the interaction with the trainer.
The key to training your dog not to bark is consistency. Communicate with your dog verbally, and take baby steps. It could very well take weeks or months for your dog to warm up to the idea that the person at the door is not a predator. So long as you are consistent, you will see good results. Your dog wants to help you, not drive you crazy by barking.