Before administering any medication, it's essential to evaluate the severity and duration of the diarrhea. If a dog has mild diarrhea that lasts less than 24 hours, it may be advisable to implement a brief fasting period, followed by a bland diet such as boiled chicken and rice. However, if diarrhea persists for more than a day, especially accompanied by other symptoms such as vomiting, lethargy, or blood in the stool, it is critical to consult a veterinarian.