Collectively, HEX alleviated inflammatory response via PPARα-SIRT1-NF-κB axis in vitro and HEX also rescued S. aureus-induced mastitis in a dose-dependent manner in vivo. This evidence concerns the gene NFKB1 and mastitis.