Brewing yeast enzymatically reduce DMSO to DMS during fermentation. This process depends on many variables, among them: yeast strain (ale yeast produce more DMS than lager), pH (higher pH favors DMS), temperature, wort gravity.
If your brewing is done right (long boil, rapid wort cooling), then...