how to flush dns in mac code example
Example 1: how to flush dns on mac
dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Example 2: flush dns cmd
ipconfig /flushdns
dscacheutil -flushcache; sudo killall -HUP mDNSResponder
ipconfig /flushdns