how to flush dns on mac os catalina code example Example: how to flush dns on mac dscacheutil -flushcache; sudo killall -HUP mDNSResponder