How to Clear Your DNS Cache on macOS

Clear DNS Cache on macOS

From the terminal, issue the following commands:

$ dscacheutil -flushcache

$ sudo killall -HUP mDNSResponder