Is it harmful for a dog to eat feces?

It is not usually harmful. The only way that it would be is if the animal that made the feces is sick, like if it has worms, for instance. If the feces is "healthy" then it will not harm the dog to eat it.