Cephalexin can be effective for the treatment of dog urinary tract infections, ear infections, and skin infections such as canine pyoderma. It is also used for soft tissue infections, bone infections, lung respiratory infections, and respiratory tract infections. Cephalexin targets many different strains of bacteria.