2. Specific Treatments In cases where a specific type of worm has been diagnosed, the veterinarian might prescribe a specialized dewormer. For example, moxidectin is effective against hookworms, and metronidazole is sometimes used to treat giardiasis, which is not a worm but can complicate worm infestations.