With Vet Approval, Your Dog Can Take Cephalexin. Get a prescription with detailed instructions. Any animal with an infection requires a diagnosis for safe and effective treatment. Play it safe. Take your dog to a trusted veterinarian. While Cephalexin works, and is usually well-tolerated, there may be a more suitable antibiotic.