1. Inside the dishwasher
Stinky dishwashers are hated by everyone. In order to get rid of bad odours, use a dishwasher detergent.
If you decide to do it yourself, remove and clean the filter screen in the bottom of the dishwasher by soaking It in warm water. Use a brush to get rid of food and debris. Place a small dish filled with a cup of white vinegar on the top rack and run an empty cycle with hot water; open the door afterwards to let it air-dry.