The results infer that IL-17A and IL-17F genes could be crucial modifiers of inflammatory diseases and the SNPs might be useful markers of genetic resistance against bovine mastitis development in both dairy and dual purpose cattle. Here, IL17A is linked to mastitis.