The results indicate that IL-17F and IL-17A could be powerful candidate genes of mastitis resistance and the significant SNPs might be useful genetic markers against mastitis in both dairy and dual purpose cattle. The gene discussed is IL17F; the disease is mastitis.