Hu et al. found that IL-17A regulates mastitis in dairy cows through the NF-κB signaling pathway. This evidence concerns the gene IL17A and mastitis.