You may need to enter your password to finish the process. If you use BIND for DNS service, there are a few commands you can use to flush its DNS cache. Reset WINSOCK entries to installation defaults: netsh winsock reset catalog Reset IPv4 TCP/IP stack to installation. You will see the response when the service stops and starts again. Clearing the cache in Safari for Windows. Use this command to clear the dnsmasq DNS cache on your Linux machine: sudo /etc/init.d/dnsmasq restartĮnter your password again, if the terminal asks you to. Run a Command to Flush the DNS Cache Youll use a Terminal. The process stops and then starts the NCSD service within seconds. IMPORTANT: Be sure and close/quit the browser and restart it after clearing the cache and cookies. Use this command to clear NCSD DNS cache on your Linux machine: sudo /etc/init.d/nscd restartĮnter your password if necessary. Press Ctrl+Alt+T on your keyboard and use the corresponding command to clear the DNS cache for the service your Linux system is running. Some of them are NCSD (Name Service Caching Daemon), dnsmasq, and BIND (Berkely Internet Name Domain).įor every distribution, you need to launch a terminal window. It depends on which service you have on your distribution and whether it is enabled by default. Some distributions, like Ubuntu, don’t have a default DNS service at all. Each Linux distribution might use a different DNS service. Linux distributions are a bit different from Windows and Mac machines. Besides DNS, you can clear many other cache types on your Mac. This can actually fix many server-related domain name problems on your computer. Flushing the DNS cache doesn’t harm your Mac in any way, and so you should do this without any hesitation each time you come across a DNS issue. You should get the correct and updated IP mapping from DNS servers next time your machine sends a DNS query. Clear the DNS Cache to Fix DNS-Related Issues on a Mac. The DNS Cache database on your computer is now clear. Open the Start Menu and start typing command prompt until you see it in the results. Load the Command Prompt as an administrator. Foe the example below, we will be using Windows 10.ġ. The procedure is the same for almost all Windows systems. Sudo discoveryutil mdnsflushcache sudo discoveryutil udnsflushcachesĬlearing DNS cache is an easy and quick process. Sudo dscacheutil -flushcache sudo killall -HUP mDNSResponder You can copy and paste them directly from the table into your terminal.
The table below lists the commands for clearing the DNS cache on most macOS and Mac OS X versions.
For example: sudo killall -HUP mDNSResponder say dns cleared successfully Flush DNS Commands on Older macOS and Mac OS X Versions Note: If you want to hear an audio notification after the DNS flush is complete, type say some text after the first command.