Call your Vet. They should be able to advise you and order/sell you the meds that will not affect the milk. If none are available they will tell you that as well.
Go to a REAL Farm Supply where there are people who own there own stock. A lot of times they are a wealth of Information because they work with it every day at home as well.
Treating for Internal Parasites of Cattle
Cooperative Extension Service
Purdue University
West Lafayette, IN 47907
Dairy Cows
Dairy cows kept in drylots or semi-confinement have access to fecal contaminated feed or water; this practice results in a detrimental load of internal parasites. Mature cows should be wormed at the end of lactation to avoid discarding milk, or wormed at any time with Morantel tartrate, because this product does not require discarding of milk. Replacement heifers should be wormed as yearlings and again prior to entering the milking herd.
Dairy Calves
Dairy calves confined to small lots frequently carry heavy loads of worm parasites. It may be necessary to worm them twice or more during warm weather to maintain desired growth rates.
Good Luck! Dsmythe