Don't buy. Adopt.
Find an organization in your area that rescues animals, and adopt a dog there. Or, if you have a specific type of dog in mind, Google rescue groups for that type of dog. No matter what size, age, or breed you're looking for, you'll find a rescue group dedicated to it.