Hair shedding, immunity issues or an infection—the answer to these problems faced by your dog can be found in their diet, say experts. Diet is one of the most important elements to solve the underlying problem of yeast build up and its resulting infections throughout a dog's body.