The best way to ferment dosa batter is to mix rice and lentils, soak them in water, grind into a smooth paste, and allow it to ferment overnight in a warm place. The fermentation process enhances the flavor and texture of the batter, making it perfect for making crispy and delicious dosas.