DNS(Domain Name System) translates domain names into IP addresses so that browsers can load the Internet as fast as possible. Use flush dns command to flush and clear dns cache ubuntu, Windows 10, Mac.
For example: Domain Name (example.com) IP Address(126.96.36.199)
Your DNS cache stores IP addresses of web servers that contain web pages which you have recently visited. Sometimes website did not get open, load incorrectly, respond 404 in order to correct that we have to clear DNS cache.
To reset DNS to default or to refresh DNS new settings you have to clear DNS Cache from your computer. By using DNS flush command problem can resolve easily.
How to flush DNS on Mac Operating System
To clear DNS cache on Apple OS based Operating System, Follow steps
Navigate to Application › Utilities › Terminal Type and Execute the following command.
sudo killall -HUP mDNSResponder
How to use flush DNS cache on Windows 10
To clear DNS cache on Windows based Operating System
Type cmd in the search box. Open Command Prompt as System Administration by right click on it. Type ipconfig /flushdns command to clear DNS cache on your computer.
How to clear DNS on Windows 7
To clear DNS cache on Windows 7 based Operating System
Click Start button and find Run on it or Press the Windows logo key + R to invoke the Run box. Open Command Prompt by typing cmd in the search box.
Type ipconfig /flushdns command to clear DNS cache on your computer.
How to Clear DNS Cache Ubuntu Linux Operating System
To clear DNS cache on Linux based Operating System, Follow steps
Open up your Terminal or Ctrl + Alt + T. Type and Execute the following command.
sudo service network-manager restart
How to Flush DNS Cache in Linux(common) Operating System
Open up your terminal. Type and Execute the following command.