Antibiotics aren't the best controls for mastitis in dairy cows. Sound management and sanitiation practices are the most effective weapons used against the disease. Here are more pointers to help control mastitis.
Herrick, John B. D.V.M.
"Can Mastitis Be Controlled?,"
Iowa Farm Science: Vol. 17
, Article 2.
Available at: https://lib.dr.iastate.edu/farmscience/vol17/iss1/2