0.1 mg/lb given once [2] The duration of the medication generally depends on the severity of the condition, your dogs response to the drug, and the occurrence of adverse effects [2, 8]. Before prescribing the drug for preventing heartworm, your dog will be tested for the presence of adult worms first [2].