Anon recommends a cast iron pan
There is nothing wrong with putting cast iron in the dishwasher. I do it all the time.
If the dishwasher strips the seasoning, you seasoned it wrong
Let the weakness be washed away