yeast infection remedymale yeast infection

How do I treat and keep ear yeast infections from coming back in my dogs ears?

Male lab and he gets recurring yeast infections in his ears. The vet treats it with medicine but it always comes back.