Clear local DNS cache

On Mac OSX

sudo killall -HUP mDNSResponder

On Mac OSX 10.10.0 – 10.10.3

sudo discoveryutil mdnsflushcache

On Mac OSX 10.5 – 10.6

sudo dscacheutil -flushcache

On Windows

ipconfig /flushdns

On Linux

/etc/init.d/named restart
/etc/init.d/nscd restart

Reference: https://coolestguidesontheplanet.com/clear-the-local-dns-cache-in-osx/

Leave a Reply

Your email address will not be published. Required fields are marked *