How to flush DNS cache on a Mac Posted byNadeem January 14, 2025January 14, 2025 Open Terminal. Type sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder and press Enter. Type your password and press Enter.