It belongs to the class of antibiotics known as a first-generation cephalosporin. The drug also goes by the name cefalexin. These are the generic names for a drug that is known by the brand names Keflex, Biocef, and Keftab. Cephalexin for dogs is an oral medication and can be given with or without food.