Don’t put them in the dishwasher. Hand wash them.
That is definitely a good option. And you are right, I should have added that if you buy a magnetic rack you should do some research on the quality and not buy anything cheap. A good quality rack will keep your toes intact.I prefer a rack that keeps the edges up and has dowels so knives can't fall. I've seen too many knives fall off a magnet.