To clear/flush DNS cache on macOS.

sudo killall -HUP mDNSResponder