Is a dermatologist really the right kind of doctor for eczema?

Dermatologist seems to only be concerned with treating symptoms which is a necessary thing but doesn’t seem like a good long term strategy.