Cephalexin (Keflex ?) is a 1st generation cephalosporin antibiotic sometimes prescribed for dogs. The drug works by intefering with the growth of susceptible pathogens and is most commonly used to treat Staph, but it is versatile and can treat many different infections of the urinary tract, respiratory tract, bones, joints, soft tissue and skin.