sudo killall -HUP mDNSResponder
sudo discoveryutil udnsflushcaches
sudo killall -HUP mDNSResponder
sudo dscacheutil -flushcache
sudo lookupd -flushcache
ipconfig /flushdns
ipconfig /flushdns
. However, the steps for accessing Command Prompt are slightly different between versions.ipconfig /flushdns
. You should receive a confirmation once the DNS cache has been cleared successfully.ipconfig /flushdns
. You should receive a confirmation message once the DNS cache is flushed.sudo systemd-resolve --flushcaches
sudo /etc/init.d/dns-clean start