Our molecular docking analysis revealed that TNF and IL-6 were primary targets for interaction with the active GYS constituents, quercetin, and luteolin, against mastitis. Here, IL6 is linked to mastitis.