Cotrim DS fight bacteria in your body. ?? Cotrim DS is used to treat infections such as urinary tract infections, bronchitis, ear infections (otitis), traveler's diarrhea, and Pneumocystis carinii pneumonia. ?? Cotrim DS may also be used for purposes other than those listed in this medication guide.