Therefore, NPFFR2, SLC4A4, DCK, LIFR, and EDN3 are candidate genes for susceptibility to mastitis. Here, NPFFR2 is linked to mastitis.